@includeIf('invoices.pdf.invoice_pdf_css') @if($invoiceSetting->locale == 'th') @endif @if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($invoice->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($item->item_summary != '' || $item->invoiceItemImage) {{-- DOMPDF HACK FOR RENDER IN TABLE --}} {{-- DOMPDF HACK FOR RENDER IN TABLE --}} @endif @endif @endforeach
@lang('app.description')@lang('app.hsnSac')@lang('modules.invoices.qty') @lang('modules.invoices.unitPrice') @lang('modules.invoices.tax') @lang('modules.invoices.amount') ({{ $invoice->currency->currency_code }})
{{ $item->item_name }} {{ $item->hsn_sac_code ? : '--' }}{{ $item->quantity }}@if($item->unit)
{{ $item->unit->unit_type }}@endif
{{ currency_format($item->unit_price, $invoice->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $invoice->currency_id, false) }}
{!! nl2br(pdfStripTags($item->item_summary)) !!} @if ($item->invoiceItemImage)

@endif
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach @if ($invoice->amountDue()) @endif
@lang('modules.invoices.subTotal')
@lang('modules.invoices.discount')
{{ $key }}
@lang('modules.invoices.total')
@lang('modules.invoices.total') @lang('modules.invoices.due')
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach @if ($invoice->amountDue()) @endif
{{ currency_format($invoice->sub_total, $invoice->currency_id, false) }}
{{ currency_format($discount, $invoice->currency_id, false) }}
{{ currency_format($tax, $invoice->currency_id, false) }}
{{ currency_format($invoice->total, $invoice->currency_id, false) }}
{{ currency_format($invoice->amountDue(), $invoice->currency_id, false) }} {{ $invoice->currency->currency_code }}
@if ($invoiceSetting->authorised_signatory && $invoiceSetting->authorised_signatory_signature && $invoice->status == 'paid') @endif @if (!($invoiceSetting->authorised_signatory && $invoiceSetting->authorised_signatory_signature && $invoice->status == 'paid')) @endif @if ($invoice->note) @endif {{-- --}} @if (isset($taxes) && $invoiceSetting->tax_calculation_msg == 1) @endif

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

{{--Custom fields data--}} @if(isset($fields) && count($fields) > 0)

@lang('modules.projects.otherInfo')

@foreach($fields as $field) @endforeach @endif @if (count($payments) > 0)

@lang('app.menu.payments') ({{ $invoice->invoice_number }})

@forelse($payments as $key => $payment) @empty @endforelse
# @lang('modules.invoices.price') @lang('modules.invoices.paymentMethod') @lang('modules.invoices.paidOn')
{{ $key + 1 }} {{ currency_format($payment->amount, $invoice->currency_id, false) }} {{ $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) }}
@lang('messages.noRecordFound')
@endif