@if(!empty($receipt_details->invoice_heading))

{!! $receipt_details->invoice_heading !!}

@endif

@if(!empty($receipt_details->invoice_no_prefix)) {!! $receipt_details->invoice_no_prefix !!} @endif {{$receipt_details->invoice_no}}

@if(!empty($receipt_details->header_text))
{!! $receipt_details->header_text !!}
@endif
@if(!empty($receipt_details->logo))
@endif @if(!empty($receipt_details->display_name))

{{$receipt_details->display_name}}
{!! $receipt_details->address !!} @if(!empty($receipt_details->contact))
{{ $receipt_details->contact }} @endif @if(!empty($receipt_details->website))
{{ $receipt_details->website }} @endif @if(!empty($receipt_details->tax_info1))
{{ $receipt_details->tax_label1 }} {{ $receipt_details->tax_info1 }} @endif @if(!empty($receipt_details->tax_info2))
{{ $receipt_details->tax_label2 }} {{ $receipt_details->tax_info2 }} @endif @if(!empty($receipt_details->location_custom_fields))
{{ $receipt_details->location_custom_fields }} @endif

@endif @if(!empty($receipt_details->table_label) || !empty($receipt_details->table))

@if(!empty($receipt_details->table_label)) {!! $receipt_details->table_label !!} @endif {{$receipt_details->table}}

@endif @if(!empty($receipt_details->waiter_label) || !empty($receipt_details->waiter))

@if(!empty($receipt_details->waiter_label)) {!! $receipt_details->waiter_label !!} @endif {{$receipt_details->waiter}}

@endif

@if(!empty($receipt_details->invoice_no_prefix)) {!! $receipt_details->invoice_no_prefix !!} @endif {{$receipt_details->invoice_no}}

@if(!empty($receipt_details->parent_invoice_no_prefix)) {!! $receipt_details->parent_invoice_no_prefix !!} @endif {{$receipt_details->parent_invoice_no}}

{{-- @if(!empty($receipt_details->payments)) @foreach($receipt_details->payments as $payment) @endforeach @endif
{{$payment['method']}} {{$payment['amount']}}
--}} @if(!empty($receipt_details->total_due))

{!! $receipt_details->total_due_label !!} {{$receipt_details->total_due}}

@endif @if(!empty($receipt_details->total_paid))

{!! $receipt_details->total_paid_label !!} {{$receipt_details->total_paid}}

@endif @if(!empty($receipt_details->date_label))

{{$receipt_details->date_label}} {{$receipt_details->invoice_date}}

@endif

{{ $receipt_details->customer_label ?? '' }}
@if(!empty($receipt_details->customer_name)) {!! $receipt_details->customer_name !!}
@endif @if(!empty($receipt_details->customer_info)) {!! $receipt_details->customer_info !!} @endif @if(!empty($receipt_details->client_id_label))
{{ $receipt_details->client_id_label }} {{ $receipt_details->client_id }} @endif @if(!empty($receipt_details->customer_tax_label))
{{ $receipt_details->customer_tax_label }} {{ $receipt_details->customer_tax_number }} @endif @if(!empty($receipt_details->customer_custom_fields))
{!! $receipt_details->customer_custom_fields !!} @endif

@if(!empty($receipt_details->sub_heading_line1)) {{ $receipt_details->sub_heading_line1 }} @endif @if(!empty($receipt_details->sub_heading_line2))
{{ $receipt_details->sub_heading_line2 }} @endif @if(!empty($receipt_details->sub_heading_line3))
{{ $receipt_details->sub_heading_line3 }} @endif @if(!empty($receipt_details->sub_heading_line4))
{{ $receipt_details->sub_heading_line4 }} @endif @if(!empty($receipt_details->sub_heading_line5))
{{ $receipt_details->sub_heading_line5 }} @endif


@php $p_width = 35; @endphp @if($receipt_details->show_cat_code != 1) @php $p_width = 45; @endphp @endif @if($receipt_details->show_cat_code == 1) @endif @foreach($receipt_details->lines as $line) @if($receipt_details->show_cat_code == 1) @endif @endforeach @php $lines = count($receipt_details->lines); @endphp @for ($i = $lines; $i < 7; $i++) @endfor
No {{$receipt_details->table_product_label}} {{$receipt_details->cat_code_label}} {{$receipt_details->table_qty_label}} {{$receipt_details->table_unit_price_label}} {{$receipt_details->table_subtotal_label}}
{{$loop->iteration}} {{$line['name']}} {{$line['variation']}} @if(!empty($line['sub_sku'])), {{$line['sub_sku']}} @endif @if(!empty($line['brand'])), {{$line['brand']}} @endif @if(!empty($line['sell_line_note']))({{$line['sell_line_note']}}) @endif @if(!empty($line['cat_code'])) {{$line['cat_code']}} @endif {{$line['quantity']}} {{$line['units']}} {{$line['unit_price_exc_tax']}} {{$line['line_total']}}
           
Authorized Signatory
@if(!empty($receipt_details->taxes)) @foreach($receipt_details->taxes as $k => $v) @endforeach @endif @if( !empty($receipt_details->discount) ) @endif @if(!empty($receipt_details->group_tax_details)) @foreach($receipt_details->group_tax_details as $key => $value) @endforeach @else @if( !empty($receipt_details->tax) ) @endif @endif
{!! $receipt_details->subtotal_label !!} {{$receipt_details->subtotal}}
{{$k}} {{$v}}
{!! $receipt_details->discount_label !!} (-) {{$receipt_details->discount}}
{!! $key !!} (+) {{$value}}
{!! $receipt_details->tax_label !!} (+) {{$receipt_details->tax}}
{!! $receipt_details->total_label !!} {{$receipt_details->total}}
{{$receipt_details->additional_notes}}
{{-- Barcode --}} @if($receipt_details->show_barcode)
@endif
@if(!empty($receipt_details->footer_text))
{!! $receipt_details->footer_text !!}
@endif