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

@if(!empty($receipt_details->display_name)) {{$receipt_details->display_name}}
@endif @if(!empty($receipt_details->landmark)) {!! $receipt_details->landmark !!} @endif
@if(!empty($receipt_details->city)) {!! $receipt_details->city !!} @endif @if(!empty($receipt_details->contact))
{!! $receipt_details->contact !!} @endif @if(!empty($receipt_details->contact) && !empty($receipt_details->website)) , @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->location_custom_fields)) {{ $receipt_details->location_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

@if(!empty($receipt_details->tax_info2)) {{ $receipt_details->tax_label2 }} {{ $receipt_details->tax_info2 }} @endif

@if(!empty($receipt_details->shipping_custom_field_1_label) || !empty($receipt_details->shipping_custom_field_2_label)) @endif

Bill to:
@if(!empty($receipt_details->customer_info)) {!! $receipt_details->customer_info !!} @endif @if(!empty($receipt_details->customer_tax_label))
GSTIN {{ $receipt_details->customer_tax_number }} @endif @if(!empty($receipt_details->customer_custom_fields))
{!! $receipt_details->customer_custom_fields !!} @endif

Invoice No Invoice Date Bill Type
{{$receipt_details->invoice_no}} {{date("d-m-Y", strtotime($receipt_details->invoice_date))}}{{$receipt_details->shipping_custom_field_1_value }}
@php $p_width = 20; @endphp @if($receipt_details->show_cat_code != 1) @php $p_width = 30; @endphp @endif @if($receipt_details->show_cat_code == 1) @endif @if(!empty($receipt_details->table_tax_headings)) @foreach($receipt_details->table_tax_headings as $tax_heading) @php $totals[$tax_heading] = 0; @endphp @endforeach @endif @foreach($receipt_details->lines as $line) @if(!empty($receipt_details->table_tax_headings)) @foreach($receipt_details->table_tax_headings as $tax_heading) @endforeach @endif @if(!empty($line['modifiers'])) @foreach($line['modifiers'] as $modifier) @if($receipt_details->show_cat_code == 1) @endif @endforeach @endif @endforeach @php $lines = count($receipt_details->lines); @endphp @for ($i = $lines; $i < 7; $i++) @if($receipt_details->show_cat_code == 1) @endif @endfor
S.No {{$receipt_details->table_product_label}} {{$receipt_details->cat_code_label}}{{$receipt_details->table_qty_label}} {{$tax_heading}} % {{$receipt_details->line_tax_label}} RATE
{{$loop->iteration}} @if(!empty($line['image'])) Image @endif {{$line['name']}} {{$line['product_variation']}} {{$line['variation']}} @if(!empty($line['sell_line_note'])) {!!$line['sell_line_note']!!} @endif @if(!empty($line['lot_number']))
{{$line['lot_number_label']}}: {{$line['lot_number']}} @endif @if(!empty($line['warranty_name']))
{{$line['warranty_name']}} @endif @if(!empty($line['warranty_exp_date'])) - {{@format_date($line['warranty_exp_date'])}} @endif @if(!empty($line['warranty_description'])) {{$line['warranty_description'] ?? ''}}@endif @if($receipt_details->show_base_unit_details && $line['quantity'] && $line['base_unit_multiplier'] !== 1)
1 {{$line['units']}} = {{$line['base_unit_multiplier']}} {{$line['base_unit_name']}}
{{$line['unit_price_inc_tax']}} x {{$line['quantity']}} = {{$line['line_total']}}
@endif
{{$line['product_custom_field4']}} {{$line['quantity']}} @if(!empty($line['group_tax_details'])) @foreach($line['group_tax_details'] as $tax_detail) @if(strpos($tax_detail['name'], $tax_heading) !== FALSE) @php $totals[$tax_heading] += $tax_detail['calculated_tax']; @endphp {{$tax_detail['calculated_tax']}} ({{$tax_detail['amount']}}%) @endif @endforeach @else @if(strpos($line['tax_name'], $tax_heading) !== FALSE) @php $totals[$tax_heading] += ($line['tax_unformatted'] * $line['quantity_uf']); @endphp {{$line['tax_unformatted'] * $line['quantity_uf']}} {{$line['tax_percent']}}% @endif @endif {{$line['tax_percent']}}% {{$line['line_total']}}
  {{$modifier['name']}} {{$modifier['variation']}} @if(!empty($modifier['sub_sku'])), {{$modifier['sub_sku']}} @endif @if(!empty($modifier['sell_line_note']))({!!$modifier['sell_line_note']!!}) @endif @if(!empty($modifier['cat_code'])) {{$modifier['cat_code']}} @endif {{$modifier['quantity']}} {{$modifier['units']}}         {{$modifier['unit_price_exc_tax']}} {{$modifier['line_total']}}
               
Total Qty: @if(!empty($receipt_details->total_quantity)) {{$receipt_details->total_quantity}} @endif