@foreach($entity->rows as $row) @endforeach
@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) }}

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

{{ $entity->from_company }}
@if(!empty($entity->from_tax_number)) @lang('invoices::invoices.pdf.tax_number'): {{ $entity->from_tax_number }}
@endif {{ $entity->from_street }}, {{ $entity->from_city }}, {{ $entity->from_zip_code }},
{{ $entity->from_state }} {{$entity->from_country }}

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

{{ $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_zip_code }},
{{ $entity->bill_state }} {{$entity->bill_country }}

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

{{ $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->ship_zip_code }},
{{ $entity->bill_state }} {{$entity->ship_country }}
@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