{{ mb_ucwords($company->company_name) }}
@if ($invoice->address)
{!! nl2br($invoice->address->address) !!}
@endif
{{ $company->company_phone }}
@lang('modules.invoices.invoiceDate'):
{{ $invoice->issue_date->format($company->date_format) }}
{{ $invoice->invoice_number }}
@if ($invoice->project && $invoice->project->client && $invoice->project->client->clientDetails && ($invoice->project->client->name || $invoice->project->client->email || $invoice->project->client->mobile || $invoice->project->client->clientDetails->company_name || $invoice->project->client->clientDetails->address) && ($invoiceSetting->show_client_name == 'yes' || $invoiceSetting->show_client_email == 'yes' || $invoiceSetting->show_client_phone == 'yes' || $invoiceSetting->show_client_company_name == 'yes' || $invoiceSetting->show_client_company_address == 'yes'))
@lang('modules.invoices.billedTo'):
@if ($invoice->project->client->name && $invoiceSetting->show_client_name == 'yes')
{{ mb_ucwords($invoice->project->client->name) }}
@endif
@if ($invoice->project->client->email && $invoiceSetting->show_client_email == 'yes')
{{ $invoice->project->client->email }}
@endif
@if ($invoice->project->client->mobile && $invoiceSetting->show_client_phone == 'yes')
{{ $invoice->project->client->mobile }}
@endif
@if ($invoice->project->client->clientDetails->company_name && $invoiceSetting->show_client_company_name == 'yes')
{{ mb_ucwords($invoice->project->client->clientDetails->company_name) }}
@endif
@if ($invoice->project->client->clientDetails->address && $invoiceSetting->show_client_company_address == 'yes')
{!! nl2br($invoice->project->clientDetails->address) !!}
@endif
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->project->client->clientDetails->shipping_address) !!}
@endif
{{ $invoice->project->client->email }}
@if ($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client->clientDetails) && !is_null($invoice->project->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->project->client->clientDetails->gst_number }}
@endif
@elseif(!is_null($invoice->client_id))
@lang('modules.invoices.billedTo'):
{{ mb_ucwords($invoice->client->name) }}
@if ($invoice->clientDetails)
{{ mb_ucwords($invoice->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->clientDetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->clientDetails->shipping_address) !!}
@endif
@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
@if (is_null($invoice->project) && !is_null($invoice->estimate) && !is_null($invoice->estimate->client))
@lang('modules.invoices.billedTo'):
{{ mb_ucwords($invoice->estimate->client->name) }}
{{ mb_ucwords($invoice->estimate->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->estimate->client->clientDetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->estimate->client->clientDetails->shipping_address) !!}
@endif
{{ $invoice->estimate->client->email }}
@if ($invoiceSetting->show_gst == 'yes' && !is_null($invoice->estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->estimate->client->clientDetails->gst_number }}
@endif
@endif
@if (empty($invoice->order_id) && $invoice->status === 'unpaid' && $invoice->due_date->year > 1)
@lang('app.dueDate'):
{{ $invoice->due_date->format($company->date_format) }}
@endif
@lang('app.status'): {{ mb_ucwords($invoice->status) }}
@if ($creditNote)
@lang('app.credit-note'): {{ $creditNote->cn_number }}
@endif
@if ($invoiceSetting->show_project == 1 && isset($invoice->project->project_name))
@lang('modules.invoices.projectName'): {{ $invoice->project->project_name }}
@endif
# |
@lang('modules.invoices.item') |
@if ($invoiceSetting->hsn_sac_code_show)
@lang('app.hsnSac') |
@endif
@lang('modules.invoices.qty') |
@lang('modules.invoices.unitPrice') |
@lang('modules.invoices.tax') |
@lang('modules.invoices.price') ({!! htmlentities($invoice->currency->currency_code) !!}) |
@foreach ($invoice->items as $item)
@if ($item->type == 'item')
{{ ++$count }} |
{{ ucfirst($item->item_name) }}
@if (!is_null($item->item_summary))
{!! nl2br(strip_tags($item->item_summary, ['p', 'b', 'strong', 'a'])) !!}
@endif
@if ($item->invoiceItemImage)
@endif
|
@if ($invoiceSetting->hsn_sac_code_show)
{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }} |
@endif
{{ $item->quantity }} |
{{ currency_formatter($item->unit_price, '') }} |
{{ strtoupper($item->tax_list) }} |
{{ currency_formatter($item->amount, '') }} |
@endif
@endforeach
@lang('modules.invoices.subTotal'): |
{{ currency_formatter($invoice->sub_total, '') }} |
@if ($discount != 0 && $discount != '')
@lang('modules.invoices.discount'): |
{{ currency_formatter($discount, '') }} |
@endif
@foreach ($taxes as $key => $tax)
{{ mb_strtoupper($key) }}: |
{{ currency_formatter($tax, '') }} |
@endforeach
@lang('modules.invoices.total'): |
{{ currency_formatter($invoice->total, '') }} |
@if ($invoice->creditNotes()->count() > 0)
@lang('modules.invoices.appliedCredits'): |
{{ currency_formatter($invoice->appliedCredits(), '') }}
|
@endif
@lang('modules.invoices.total') @lang('modules.invoices.paid'): |
{{ currency_formatter($invoice->getPaidAmount(), '') }} |
@lang('modules.invoices.total') @lang('modules.invoices.due'): |
{{ currency_formatter($invoice->amountDue(), '') }} |
@if (!is_null($invoice->note))
@lang('app.note')
{!! '--' !!}
@endif
@if ($invoice->status == 'unpaid')
@lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($invoiceSetting->invoice_terms) !!}
@endif
@if (isset($taxes) && $invoiceSetting->tax_calculation_msg == 1)
@if ($invoice->calculate_tax == 'after_discount')
@lang('messages.calculateTaxAfterDiscount')
@else
@lang('messages.calculateTaxBeforeDiscount')
@endif
@endif