{{--header block--}}
{{----}}

{{ App\Helpers\StringHelper::getNameByLocal($sale['branch_name']) }}


វិក័យប័ត្រ

Invoice

{{--customer block--}}
អតិថិជន៖ {{ $sale['customer_name'] }}
អាស័យដ្ឋាន៖ {{ $sale['customer_address'] }}
លេខទូរស័ព្ទ៖ {{ $sale['customer_phone'] }}
{{--company block--}}
លេខវិក័យប័ត្រ៖ {{ $sale['ref_no'] }}
អ្នកគិតលុយ៖ {{ $sale['seller'] }}
ថ្ងៃ-ខែ-ឆ្នាំ៖ {{ $sale['transaction_date'] }}
@foreach($currencies as $index => $item) @endforeach @foreach($sale_lists as $row) @foreach($currencies as $index => $item) @if($item['symbol'] == $row['currency_symbol']) @endif @if($item['symbol'] != $row['currency_symbol']) @endif @endforeach @endforeach {{--total_by_currency--}} @foreach($currencies as $index => $item) @endforeach {{--delivery_amount--}} {{--total_discount--}} {{--grand_total--}} {{--payment_by_currency--}} @foreach($currencies as $index => $item) @endforeach {{--dept_amount_by_currency--}} {{--change_amount_by_currency--}} @foreach(json_decode($sale['change_amount_by_currency']) as $index => $item) @endforeach
បរិយាយ ចំនួន តំលៃ បញ្ចុះសរុប( {{ $item['code'] == 'THB' ? 'B' : $item['symbol'] }} )
{{ $row['product_variation_name'] }} {{ intval($row['qty']) }}  {{ $row['unit_type_name'] }} {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['price']) }} @if($row['discount_type'] == App\Enums\DiscountTypeStatus::getFixId()) {{ $row['currency_symbol'] }} @endif {{ App\Helpers\StringHelper::currency($row['discount_value']) }} @if($row['discount_type'] == App\Enums\DiscountTypeStatus::getPercentageId()) % @endif {{ $row['currency_code'] == 'THB' ? 'B' : $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['total_price']) }}{{ $item['code'] == 'THB' ? 'B' : $item['symbol'] }} 0
សរុប: {{ $item['code'] == 'THB' ? 'B' : $item['symbol'] }} @foreach(json_decode($sale['total_payment_by_currency']) as $index => $row) @if($item['symbol'] == $row->currency_symbol) {{ App\Helpers\StringHelper::currency($row->sub_total) }} @endif @endforeach
សេវ៉ាដឹក: {{ $sale['currency_code'] == 'THB' ? 'B' : $sale['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['delivery_amount']) }}
បញ្ចុះតម្លៃ: @if($sale['discount_type'] == App\Enums\DiscountTypeStatus::getFixId()) {{ $sale['currency_code'] == 'THB' ? 'B' : $sale['currency_symbol'] }} @endif {{ $sale['discount_value'] == null ? 0 : $sale['discount_value'] }} @if($sale['discount_type'] == App\Enums\DiscountTypeStatus::getPercentageId()) % @endif
សរុបចុងក្រោយ: {{ $sale['currency_code'] == 'THB' ? 'B' : $sale['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['total_payment']) }}
ប្រាក់កក់: {{ $item['code'] == 'THB' ? 'B' : $item['symbol'] }} {{-- {{ dd($payment_history[0]['payment_history_detail']) }}--}} @if($payment_history) @foreach($payment_history[0]['payment_history_detail'] as $index => $row) @if($item['code'] == $row['currency_code']) {{ App\Helpers\StringHelper::currency($row['total_amount']) }} @endif @endforeach @endif
នៅខ្វះ: @foreach(json_decode($sale['dept_amount_by_currency']) as $index => $item) @if ($index != count(json_decode($sale['change_amount_by_currency'])) - 1) {{ 'ឬ' }} @endif @endforeach
នៅសល់: {{ $item->currency_code == 'THB' ? 'B' : $item->currency_symbol }} {{ App\Helpers\StringHelper::currency($item->change_amount) }}
អ្នកលក់ អ្នកដឹក អ្នកផ្ទៀងផ្ទាត់