@foreach($entity->rows as $row) @endforeach
@if(\Modules\Platform\Core\Helper\CompanySettings::get(\Modules\Platform\Core\Helper\SettingsHelper::S_DISPLAY_SHOW_LOGO_IN_PDF)) @else @include('invoices::pdf.company_part') @endif
@if(config('invoices.qrcode_in_print'))
{!! QrCode::size(75)->margin(1)->generate(route('invoices.invoices.show',$entity->id)); !!}
@endif
@lang('invoices::invoices.pdf.invoice_number') #: {{ $entity->invoice_number }}
@lang('invoices::invoices.pdf.invoice_date'): {{ \Modules\Platform\Core\Helper\UserHelper::formatUserDate($entity->invoice_date) }}
@lang('invoices::invoices.pdf.due_date'): {{ \Modules\Platform\Core\Helper\UserHelper::formatUserDate($entity->due_date) }}
@if(\Modules\Platform\Core\Helper\CompanySettings::get(\Modules\Platform\Core\Helper\SettingsHelper::S_DISPLAY_SHOW_LOGO_IN_PDF)) @endif
@include('invoices::pdf.company_part')

@lang('invoices::invoices.pdf.bill_to')

{!! optionalString($entity->bill_to,'','
') !!} @if(!empty($entity->bill_tax_number)) @lang('invoices::invoices.pdf.tax_number'): {{ $entity->bill_tax_number }}
@endif {{ $entity->bill_street }}
{{ $entity->bill_city }} {{$entity->bill_state}} {{$entity->bill_zip_code }}
{{ optional($entity->billCountry)->name }}

@lang('invoices::invoices.pdf.ship_to')

{!! optionalString($entity->ship_to,'','
') !!} @if(!empty($entity->ship_tax_number)) @lang('invoices::invoices.pdf.tax_number'): {{ $entity->ship_tax_number }}
@endif {{ $entity->ship_street }}
{{ $entity->ship_city }} {{ $entity->bill_state }} {{ $entity->ship_zip_code }}
{{ optional($entity->shipCountry)->name }}
@lang('invoices::invoices.pdf.product_service') @lang('invoices::invoices.pdf.unit_cost') @lang('invoices::invoices.pdf.quantity') @lang('invoices::invoices.pdf.line_total')
{{ $row->product_name }} {{ number_format($row->price,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif {{ $row->quantity }} {{ number_format($row->lineTotal,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif
@lang('invoices::invoices.pdf.subtotal') {{ number_format($entity->subtotal,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif
{{ number_format($entity->discount,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif
{{ number_format($entity->delivery_cost,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif
{{ number_format($entity->taxValue,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif
{{ number_format($entity->grossValue,2) }} @if(!empty($entity->currency)) {{ $entity->currency->code }} @endif
@if($entity->shipping)

@lang('invoices::invoices.pdf.shipping')
@if(!empty($entity->quoteCarrier)) @lang('invoices::invoices.pdf.carrier'): {{$entity->quoteCarrier->name}}
@endif {{ $entity->shipping }}
@endif @if($entity->terms_and_cond)

@lang('invoices::invoices.pdf.terms_and_cond')
{!! $entity->terms_and_cond !!}
@endif @if($entity->notes)

@lang('invoices::invoices.pdf.notes')
{!! $entity->notes !!}
@endif