|
@if(\Modules\Platform\Core\Helper\CompanySettings::get(\Modules\Platform\Core\Helper\SettingsHelper::S_DISPLAY_SHOW_LOGO_IN_PDF))
{!! \Modules\Platform\Core\Helper\SettingsHelper::pdfLogoPath() !!}
@else
@include('orders::pdf.company_part')
@endif
|
@lang('orders::orders.pdf.order_number') #: {{ $entity->order_number }}
@lang('orders::orders.pdf.order_date'): {{ \Modules\Platform\Core\Helper\UserHelper::formatUserDate($entity->order_date) }}
@lang('orders::orders.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))
|
@include('orders::pdf.company_part')
|
@endif
@lang('orders::orders.pdf.bill_to')
{!! optionalString($entity->bill_to,'',' ') !!}
@if(!empty($entity->bill_tax_number))
@lang('orders::orders.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('orders::orders.pdf.ship_to')
{!! optionalString($entity->ship_to,'',' ') !!}
@if(!empty($entity->ship_tax_number))
@lang('orders::orders.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('orders::orders.pdf.product_service')
|
@lang('orders::orders.pdf.unit_cost')
|
@lang('orders::orders.pdf.quantity')
|
@lang('orders::orders.pdf.line_total')
|
@foreach($entity->rows as $row)
|
{{ $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
|
@endforeach
|
|
@lang('orders::orders.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
|
|
|
{{ number_format($entity->paid,2) }}
@if(!empty($entity->currency))
{{ $entity->currency->code }}
@endif
|