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

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

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

Ref No: {{ $receipt_details->invoice_no }}
Date: {{ $receipt_details->transaction_date }} @if (!empty($receipt_details->supplier_info)) Supplier:
{!! $receipt_details->supplier_info !!}
@endif


@php $p_width = 45; @endphp @if (!empty($receipt_details->item_discount_label)) @php $p_width -= 10; @endphp @endif @if (!empty($receipt_details->discounted_unit_price_label)) @php $p_width -= 10; @endphp @endif @if (!empty($receipt_details->discounted_unit_price_label)) @endif @if (!empty($receipt_details->item_discount_label)) @endif @forelse($receipt_details->lines as $line) @if (!empty($receipt_details->item_discount_label)) @endif @if (!empty($line['modifiers'])) @foreach ($line['modifiers'] as $modifier) @if (!empty($receipt_details->discounted_unit_price_label)) @endif @if (!empty($receipt_details->item_discount_label)) @endif @endforeach @endif @empty @if (!empty($receipt_details->discounted_unit_price_label)) @endif @if (!empty($receipt_details->item_discount_label)) @endif @endforelse
Products QTY Unit Price{{ $receipt_details->discounted_unit_price_label }}{{ $receipt_details->item_discount_label }}Total
{{ $line['name'] }} {{ $line['product_variation'] }} {{ $line['variation'] }} {{-- @if (!empty($line['sub_sku'])), {{$line['sub_sku']}} @endif @if (!empty($line['brand'])), {{$line['brand']}} @endif @if (!empty($line['cat_code'])), {{$line['cat_code']}}@endif --}} @if (!empty($line['product_custom_fields'])) , {{ $line['product_custom_fields'] }} @endif @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['product_expiry'])) , {{ $line['product_expiry_label'] }}: {{ $line['product_expiry'] }} @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 ($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['quantity'] }} {{-- {{$line['units']}} --}} @if ($line['quantity'] && $line['base_unit_multiplier'] !== 1)
{{ $line['quantity'] }} x {{ $line['base_unit_multiplier'] }} = {{ $line['orig_quantity'] }} {{ $line['base_unit_name'] }} @endif
Rs {{ $line['unit_price_before_discount'] }} {{ $line['total_line_discount'] ?? '0.00' }} @if (!empty($line['line_discount_percent'])) ({{ $line['line_discount_percent'] }}%) @endif Rs {{ $line['line_total'] }}
{{ $modifier['name'] }} {{ $modifier['variation'] }} @if (!empty($modifier['sub_sku'])) , {{ $modifier['sub_sku'] }} @endif @if (!empty($modifier['cat_code'])) , {{ $modifier['cat_code'] }} @endif @if (!empty($modifier['sell_line_note'])) ({!! $modifier['sell_line_note'] !!}) @endif {{ $modifier['quantity'] }} {{ $modifier['units'] }} {{ $modifier['unit_price_inc_tax'] }}{{ $modifier['unit_price_exc_tax'] }}0.00{{ $modifier['line_total'] }}
 


Sub Total: Rs {{ number_format($receipt_details->total_in_words, 2) }}