@php $styleCss = 'style'; @endphp @if (!empty($invoice->paymentQrCode)) @endif
{{ html_entity_decode($setting['app_name']) }}
{{ __('messages.common.address') . ':' }} {!! $setting['company_address'] !!}
@if (isset($setting['show_additional_address_in_invoice']) && $setting['show_additional_address_in_invoice'] == 1)
{{ $setting['country'] . ', ' . $setting['state'] . ', ' . $setting['city'] . ', ' . $setting['zipcode'] . '.' }}
@endif {{ __('messages.user.phone') . ':' }} {{ $setting['company_phone'] }}
@if (isset($setting['show_additional_address_in_invoice']) && $setting['show_additional_address_in_invoice'] == 1)
{{ __('messages.invoice.fax_no') . ':' }} {{ $setting['fax_no'] }}
@endif
{{ __('messages.common.invoice') }}
{{ __('messages.invoice.invoice_id') . ':' }} #{{ $invoice->invoice_id }}
{{ __('messages.invoice.invoice_date') . ':' }}  {{ \Carbon\Carbon::parse($invoice->invoice_date)->translatedFormat(currentDateFormat()) }}
{{ __('messages.invoice.due_date') . ':' }}  {{ \Carbon\Carbon::parse($invoice->due_date)->translatedFormat(currentDateFormat()) }}

{{ __('messages.common.to') }}
{{ __('messages.common.name') . ':' }} {{ $client->user->full_name }}
{{ __('messages.common.email') . ':' }} {{ $client->user->email }} @if (!empty($client->address))
{{ __('messages.common.address') . ':' }} {{ $client->address }} @endif
{{ __('messages.payment_qr_codes.payment_qr_code') }}
@if (isset($invoice) && !empty($invoice)) @foreach ($invoice->invoiceItems as $key => $invoiceItems) @if ( !empty($invoiceItems->product->description) && (isset($setting['show_product_description']) && $setting['show_product_description'] == 1)) @endforeach @endif
# {{ __('messages.product.product') }} {{ __('messages.invoice.qty') }} {{ __('messages.product.unit_price') }} {{ __('messages.invoice.tax') . ' (in %)' }} {{ __('messages.invoice.amount') }}
{{ $key + 1 }} @else @endif {{ isset($invoiceItems->product->name) ? $invoiceItems->product->name : $invoiceItems->product_name ?? __('messages.common.n/a') }} @if ( !empty($invoiceItems->product->description) && (isset($setting['show_product_description']) && $setting['show_product_description'] == 1))
{{ $invoiceItems->product->description }} @endif
{{ number_format($invoiceItems->quantity, 2) }} {{ isset($invoiceItems->price) ? getInvoiceCurrencyAmount($invoiceItems->price, $invoice->currency_id, true) : __('messages.common.n/a') }} @foreach ($invoiceItems->invoiceItemTax as $keys => $tax) {{ $tax->tax ?? __('messages.common.n/a') }} @if (!$loop->last) , @endif @endforeach {{ isset($invoiceItems->total) ? getInvoiceCurrencyAmount($invoiceItems->total, $invoice->currency_id, true) : __('messages.common.n/a') }}
@if (count($invoice->invoiceTaxes) > 0) @foreach ($invoice->invoiceTaxes as $tax) @endforeach
{{ __('messages.tax_information') . ':' }}
{{ $tax->value . '%' }}{{ ' (' . $tax->name . ')' }}
@endif
@php $itemTaxesAmount = $invoice->amount + array_sum($totalTax); $invoiceTaxesAmount = ($itemTaxesAmount * $invoice->invoiceTaxes->sum('value')) / 100; $totalTaxes = array_sum($totalTax) + $invoiceTaxesAmount; @endphp
{{ __('messages.client.notes') . ':' }}

{!! nl2br($invoice->note ?? __('messages.common.n/a')) !!}

{{ __('messages.invoice.terms') . ':' }}

{!! nl2br($invoice->term ?? __('messages.common.n/a')) !!}


{{ __('messages.common.regards') . ':' }}

{{ $setting['app_name'] }}