@if(is_null($global->logo))
.'/img/worksuite-logo.png' }})
@else
.'/user-uploads/app-logo/'.$global->logo }})
@endif
{!! nl2br($global->address) !!}
{{ $global->company_phone }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))
@lang('app.gstIn'): {{ $invoiceSetting->gst_number }}
@endif
{{ $invoiceSetting->invoice_prefix }}
{{ $invoice->original_invoice_number }}
@if(!is_null($invoice->project) && !is_null($invoice->project->client))
@if(!is_null($invoice->project->client))
@lang('modules.invoices.billedTo'):
{{ ucwords($invoice->project->client->name) }}
@if($invoice->project->client->client_details)
{{ ucwords($invoice->project->client->client_details->company_name) }}
{!! nl2br($invoice->project->client->client_details->address) !!}
@endif
{{ $invoice->project->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client->client_details) && !is_null($invoice->project->client->client_details->gst_number))
@lang('app.gstIn'): {{ $invoice->project->client->client_details->gst_number }}
@endif
@endif
@elseif(!is_null($invoice->client_id))
@if(!is_null($invoice->client))
@lang('modules.invoices.billedTo'):
{{ ucwords($invoice->client->name) }}
@if($invoice->clientdetails)
{{ ucwords($invoice->clientdetails->company_name) }}
{!! nl2br($invoice->clientdetails->address) !!}
@endif
{{ $invoice->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->clientdetails) && !is_null($invoice->clientdetails->gst_number))
@lang('app.gstIn'): {{ $invoice->clientdetails->gst_number }}
@endif
@endif
@endif
@if(is_null($invoice->project) && !is_null($invoice->estimate) && !is_null($invoice->estimate->client))
@if(!is_null($invoice->estimate->client))
@lang('modules.invoices.billedTo'):
{{ ucwords($invoice->estimate->client->name) }}
{{ ucwords($invoice->estimate->client->client_details->company_name) }}
{!! nl2br($invoice->estimate->client->client_details->address) !!}
{{ $invoice->estimate->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->estimate->client->client_details->gst_number))
@lang('app.gstIn'): {{ $invoice->estimate->client->client_details->gst_number }}
@endif
@endif
@endif
| # |
@lang("modules.invoices.item") |
@lang("modules.invoices.qty") |
@lang("modules.invoices.unitPrice") |
@lang("modules.invoices.price") |
@foreach($invoice->items as $item)
@if($item->type == 'item')
| {{ ++$count }} |
{{ ucfirst($item->item_name) }} |
{{ $item->quantity }} |
{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$item->unit_price, 2, '.', '') }} |
{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$item->amount, 2, '.', '') }} |
@endif
@endforeach
| @lang("modules.invoices.subTotal"): |
{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$invoice->sub_total, 2, '.', '') }} |
@if($discount != 0 && $discount != '')
| @lang("modules.invoices.discount"): |
-{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$discount, 2, '.', '') }} |
@endif
@foreach($taxes as $key=>$tax)
| {{ strtoupper($key) }}: |
{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$tax, 2, '.', '') }} |
@endforeach
| @lang("modules.invoices.total"): |
{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$invoice->total, 2, '.', '') }} |
@if ($invoice->credit_notes()->count() > 0)
|
@lang('modules.invoices.appliedCredits'): |
{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$invoice->appliedCredits(), 2, '.', '') }}
|
@endif
| @lang("modules.invoices.total") @lang("modules.invoices.paid"): |
{!! htmlentities($invoice->currency->currency_symbol) !!} {{ number_format((float)$invoice->getPaidAmount(), 2, '.', '') }} |
| @lang("modules.invoices.total") @lang("modules.invoices.due"): |
{!! htmlentities($invoice->currency->currency_symbol) !!} {{ number_format((float)$invoice->amountDue(), 2, '.', '') }} |
@lang('app.menu.issues') @lang('app.date'): {{ $invoice->issue_date->format($global->date_format) }}
@if($invoice->status == 'unpaid')
@lang('app.dueDate'): {{ $invoice->due_date->format($global->date_format) }}
@endif
@lang('app.status'): {{ ucwords($invoice->status) }}
@if($creditNote)
@lang('app.credit-note'): {{ $creditNote->cn_number }}
@endif
Here {!! htmlentities($invoice->currency->currency_symbol) !!} refers to {!! $invoice->currency->currency_code !!}
@if(!is_null($invoice->note))
{!! nl2br($invoice->note) !!}
@endif
@if($invoice->status == 'unpaid')
{!! nl2br($invoiceSetting->invoice_terms) !!}
@endif
@lang('app.thanks')!