@includeIf('invoices.pdf.invoice_pdf_css')
@lang('modules.invoices.invoiceDate'): {{ $invoice->issue_date->translatedFormat($company->date_format) }}
{{ $invoice->invoice_number }}
@if (empty($invoice->order_id) && $invoice->status === 'unpaid' && $invoice->due_date->year > 1)
@lang('app.dueDate'): {{ $invoice->due_date->translatedFormat($company->date_format) }}
@endif @if ($invoiceSetting->show_status)
@lang('app.status'): @lang('modules.invoices.' . $invoice->status)
@endif @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

 

 

 

@if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($invoice->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach
# @lang('modules.invoices.item')@lang('app.hsnSac')@lang('modules.invoices.qty') @lang('modules.invoices.unitPrice') @lang('modules.invoices.tax') @lang('modules.invoices.price') ({!! htmlentities($invoice->currency->currency_code) !!})
{{ ++$count }} {{ $item->item_name }} @if (!is_null($item->item_summary))

{!! nl2br(pdfStripTags($item->item_summary)) !!}

@endif @if ($item->invoiceItemImage)

@endif
{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }}
{{ $item->unit->unit_type }}
{{ currency_format($item->unit_price, $invoice->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $invoice->currency_id, false) }}
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach @if ($invoice->creditNotes()->count() > 0) @endif @if ($invoice->amountDue()) @endif @if ($invoiceSetting->authorised_signatory && $invoiceSetting->authorised_signatory_signature && $invoice->status == 'paid') @endif
@lang('modules.invoices.subTotal'): {{ currency_format($invoice->sub_total, $invoice->currency_id, false) }}
@lang('modules.invoices.discount'): {{ currency_format($discount, $invoice->currency_id, false) }}
{{ $key }}: {{ currency_format($tax, $invoice->currency_id, false) }}
@lang('modules.invoices.total'): {{ currency_format($invoice->total, $invoice->currency_id, false) }}
@lang('modules.invoices.appliedCredits'): {{ currency_format($invoice->appliedCredits(), $invoice->currency_id, false) }}
@lang('app.totalPaid') : {{ currency_format($invoice->getPaidAmount(), $invoice->currency_id, false) }}
@lang('app.totalDue'): {{ currency_format($invoice->amountDue(), $invoice->currency_id, false) }}
{{ $company->company_name }}

@lang('modules.invoiceSettings.authorisedSignatory')

@if ($invoice->note) @lang('app.note')
{!! nl2br($invoice->note) !!}
@endif

@lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($invoiceSetting->invoice_terms) !!} @if (isset($invoiceSetting->other_info))

{!! nl2br($invoiceSetting->other_info) !!} @endif
@if (isset($taxes) && $invoiceSetting->tax_calculation_msg == 1)
@if ($invoice->calculate_tax == 'after_discount') @lang('messages.calculateTaxAfterDiscount') @else @lang('messages.calculateTaxBeforeDiscount') @endif
@endif
{{--Custom fields data--}} @if(isset($fields) && count($fields) > 0)

@lang('modules.projects.otherInfo')

@foreach($fields as $field) @endforeach
{{ $field->label }}

@if( $field->type == 'text' || $field->type == 'password' || $field->type == 'number' || $field->type == 'textarea') {{$invoice->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'radio') {{ !is_null($invoice->custom_fields_data['field_'.$field->id]) ? $invoice->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($invoice->custom_fields_data['field_'.$field->id]) && $invoice->custom_fields_data['field_'.$field->id] != '') ? $field->values[$invoice->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox') {{ !is_null($invoice->custom_fields_data['field_'.$field->id]) ? $invoice->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'date') {{ !is_null($invoice->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($invoice->custom_fields_data['field_'.$field->id])->translatedFormat($invoice->company->date_format) : '--'}} @endif

@endif @if (count($payments) > 0)

@lang('app.menu.payments')

@forelse($payments as $key => $payment) @empty @endforelse
# @lang('modules.payments.amount') @lang('modules.invoices.paymentMethod') @lang('modules.invoices.paidOn')
{{ $key + 1 }} {{ number_format((float) $payment->amount, 2, '.', '') }} {!! $invoice->currency->currency_code !!} @php $method = '--'; if (!is_null($payment->offline_method_id)) { $method = $payment->offlineMethod->name; } elseif (isset($payment->gateway)) { $method = $payment->gateway; } @endphp {{ $method }} {{ $payment->paid_on->translatedFormat($company->date_format) }}
@endif