@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 @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->invoice_heading)) {!! $receipt_details->invoice_heading !!} @else ඉන්වොයිසිය / Invoice @endif

{{$receipt_details->invoice_date}}
No: {{$receipt_details->invoice_no}}
@if(!empty($receipt_details->customer_name) || !empty($receipt_details->customer_mobile) || !empty($receipt_details->customer_address))
@if(!empty($receipt_details->customer_name))
ගනුදෙනුකරු (Customer): {{$receipt_details->customer_name}}
@endif @if(!empty($receipt_details->customer_mobile))
දුරකථනය (Mobile): {{$receipt_details->customer_mobile}}
@endif @if(!empty($receipt_details->customer_address))
ලිපිනය (Address): {!! $receipt_details->customer_address !!}
@endif @if(!empty($receipt_details->customer_tax_number))
{{ $receipt_details->customer_tax_label }}: {{ $receipt_details->customer_tax_number }}
@endif
@endif
@forelse($receipt_details->lines as $line) {{-- Modifiers Support --}} @if(!empty($line['modifiers'])) @foreach($line['modifiers'] as $modifier) @endforeach @endif @empty @endforelse
ප්‍රමාණය සඳහන් මිල අපේ මිල එකතුව
@php $product_name = $line['name']; if (!empty($line['product_custom_field3']) && !empty($line['product_custom_fields']) && strpos($line['product_custom_fields'], (string)$line['product_custom_field3']) !== false) { $product_name = $line['product_custom_field3']; } @endphp {{$product_name}} {{$line['product_variation']}} {{$line['variation']}} @if(!empty($line['brand'])) ({{ $line['brand'] }}) @endif @if(!empty($line['sub_sku'])) - {{ $line['sub_sku'] }} @endif @if(!empty($line['sell_line_note']))
{!! $line['sell_line_note'] !!} @endif {{-- Serial, Color, Storage --}} @php $show_color_storage_setting = null; if (isset($receipt_details->common_settings)) { if (is_array($receipt_details->common_settings)) { $show_color_storage_setting = $receipt_details->common_settings['show_color_storage'] ?? null; } else { $show_color_storage_setting = $receipt_details->common_settings->show_color_storage ?? null; } } $show_color_storage = !empty($show_color_storage_setting) || $show_color_storage_setting === '1' || $show_color_storage_setting === 1 || $show_color_storage_setting === true; $has_serial = $receipt_details->show_serial_number && !empty(getSellsProductSerial($line['product_id'], $receipt_details->product_Transaction_id)); $has_color = $show_color_storage && !empty($line['product_color']); $has_storage = $show_color_storage && !empty($line['product_storage']); $show_info_line = $has_serial || $has_color || $has_storage; @endphp @if($show_info_line)
@if($has_serial) S/N: @foreach(getSellsProductSerial($line['product_id'], $receipt_details->product_Transaction_id) as $serial_number) {{$serial_number->serial_number}}@if(!$loop->last), @endif @endforeach @endif @if($has_serial && ($has_color || $has_storage)) | @endif @if($has_color) Color: {{$line['product_color']}} @endif @if($has_color && $has_storage) | @endif @if($has_storage) Storage: {{$line['product_storage']}} @endif
@endif {{-- Warranty details --}} @if(!empty($line['warranty_name']))
වගකීම් කාලය (Warranty): {{$line['warranty_name']}} @if(!empty($line['warranty_exp_date'])) ({{@format_date($line['warranty_exp_date'])}}) @endif @if(!empty($line['warranty_description']))
{{$line['warranty_description']}} @endif
@endif
{{$line['quantity']}} @if(!empty($line['unit_price_before_discount']) && $line['unit_price_before_discount'] != $line['unit_price_inc_tax']) {{$line['unit_price_before_discount']}} @else {{$line['unit_price_inc_tax']}} @endif {{$line['unit_price_inc_tax']}} {{$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
{{$modifier['quantity']}} {{$modifier['unit_price_inc_tax']}} {{$modifier['unit_price_inc_tax']}} {{$modifier['line_total']}}
No items found
මුළු එකතුව {{$receipt_details->total}}
**** ගෙවීම් ****
@if(!empty($receipt_details->payments)) @foreach($receipt_details->payments as $payment)
ගෙවූ මුදල ({{$payment['method']}}) {{$payment['amount']}}
@endforeach @endif @if(!empty($receipt_details->total_due))
මෙම බිල්පතේ හිඟ මුදල {{$receipt_details->total_due}}
@endif @if(!empty($receipt_details->all_due)) @php $prev_due_formatted = '0.00'; if (!empty($receipt_details->total_previous_due)) { $prev_due_formatted = $receipt_details->total_previous_due; } else { $current_due_val = (float) preg_replace('/[^0-9.]/', '', $receipt_details->total_due ?? '0'); $all_due_val = (float) preg_replace('/[^0-9.]/', '', $receipt_details->all_due ?? '0'); $prev_due_val = $all_due_val - $current_due_val; if ($prev_due_val > 0) { $currency_prefix = trim(preg_replace('/[0-9.,]/', '', $receipt_details->all_due ?? '')); $prev_due_formatted = ($currency_prefix ? $currency_prefix . ' ' : '') . number_format($prev_due_val, 2); } else { $prev_due_formatted = '0.00'; } } @endphp
පෙර හිඟ මුදල {{ $prev_due_formatted }}
මුළු හිඟ මුදල {{$receipt_details->all_due}}
@endif
භාණ්ඩ සංඛ්‍යාව {{ !empty($receipt_details->total_items) ? $receipt_details->total_items : count($receipt_details->lines) }}
@if(!empty($receipt_details->total_line_discount) || !empty($receipt_details->discount)) @php $total_profit = 0; // Calculate total discount if needed. If $receipt_details->total_line_discount exists or discount exists: @endphp
ඔබ ලැබූ ලාභය
@if(!empty($receipt_details->discount) && $receipt_details->discount != 0) {{$receipt_details->discount}} @else {{$receipt_details->total_line_discount}} @endif
@endif @if(!empty($receipt_details->service_staff))
Cashier: {{$receipt_details->service_staff}}
@endif
@if($receipt_details->show_barcode)
Barcode
@endif
ස්තූතියි නැවත එන්න !
Software by APK HUB - 0771234567