@if ($invoice_type == 'a4') @elseif ($invoice_type == 'a5') @endif
វិក្កយបត្រ
INVOICE
@if ($invoice_type == 'a4')
អតិថិជន / Customer: {{ $sale['customer_name'] }}
អាស័យដ្ឋាន / Address: {{ $sale['customer_address'] }}
លេខទូរស័ព្ទ / Phone: {{ $sale['customer_phone'] }}
វិក្កយបត្រ / Invoice No: {{ $sale['ref_no'] }}
កាលបរិច្ឆេទ / Date: {{ $sale['transaction_date'] }}
បេឡា / Cashier: {{ $user }}
@elseif ($invoice_type == 'a5')
អតិថិជន / Customer: {{ $sale['customer_name'] }}
អាស័យដ្ឋាន / Address: {{ $sale['customer_address'] }}
លេខទូរស័ព្ទ / Phone: {{ $sale['customer_phone'] }}
វិក្កយបត្រ / Invoice No: {{ $sale['ref_no'] }}
កាលបរិច្ឆេទ / Date: {{ $sale['transaction_date'] }}
បេឡា / Cashier: {{ $user }}
@endif
@php $sortedSaleLists = collect($sale_lists)->sortBy('id')->values(); @endphp
@foreach ($sortedSaleLists as $index => $row) @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) @endif @endforeach @endforeach @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) @endif @endforeach
ល.រ លេខកូដ រាយមុខទំនិញ ចំនួន តម្លៃរាយ បញ្ចុះតម្លៃ តម្លៃសរុប
{{ $index + 1 }} {{ $row['code'] }} {{ $row['product_variation_name'] }} @if ($row['alt_name'] != null) - {{ $row['alt_name'] }} @endif {{ $row['price'] == 0 ? '(ថែម)' : '' }}
@if ($row['remark'] != null) {{ $row['remark'] }} @endif
{{ App\Helpers\StringHelper::currency($row['qty']) }} {{ $row['unit_type_name'] }} {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['price']) }} @if ($sale['discount_value'] != 0) @if ($sale['discount_type'] == 0) {{ App\Helpers\StringHelper::currency($sale['discount_value']) }} % @else {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['discount_value']) }} @endif @else @endif {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['total_price']) }}
{{ $sale['remark'] }} {!! $invoice_template['term_and_condition'] !!} សរុប: @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency(($sale['total_payment'] + $sale['discount_amount']) * $item['buy_in_price']) }} @endif @endforeach
បញ្ចុះតម្លៃ: @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['discount_amount']) }} @endif @endforeach
សរុបចុងក្រោយ: {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['total_payment']) }}
អ្នកទិញ អ្នកដឹក អ្នកលក់ {{ $sale['seller']}}
@if ($invoice_type == 'a4') @elseif ($invoice_type == 'a5') @endif