{{$receipt_details->invoice_date}}
No:
{{$receipt_details->invoice_no}}
| ප්රමාණය |
සඳහන් මිල |
අපේ මිල |
එකතුව |
@forelse($receipt_details->lines as $line)
|
@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']}}
|
|
{{$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']}} |
@empty
| No items found |
@endforelse
මුළු එකතුව
{{$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)
@endif
Software by APK HUB - 0771234567