{{-- --}}

{!! $invoice_template['title'] !!}

INVOICE

{!! $invoice_template['header_text'] !!}
@if ($invoice_type == 'a4') {{-- customer block --}}
អតិថិជន: {{ $sale['customer_name'] }}
អាស័យដ្ឋាន: {{ $sale['customer_address'] }}
លេខទូរស័ព្ទ: {{ $sale['customer_phone'] }}
{{-- company block --}}
@if ($sale['seller'] != null) @endif
លេខវិក័យប័ត្រ: {{ $sale['ref_no'] }}
កាលបរិច្ឆេទ: {{ $sale['transaction_date'] }}
អ្នកគិតលុយ: {{ $user }}
អ្នកទីផ្សារ {{ $sale['seller'] }}
@elseif ($invoice_type == 'a5') {{-- customer block --}}
អតិថិជន: {{ $sale['customer_name'] }}
អាស័យដ្ឋាន: {{ $sale['customer_address'] }}
លេខទូរស័ព្ទ: {{ $sale['customer_phone'] }}
{{-- company block --}}
@if ($sale['seller'] != null) @endif
លេខវិក័យប័ត្រ: {{ $sale['ref_no'] }}
កាលបរិច្ឆេទ: {{ $sale['transaction_date'] }}
អ្នកគិតលុយ: {{ $user }}
អ្នកទីផ្សារ {{ $sale['seller'] }}
@endif
@php $sortedSaleLists = collect($sale_lists)->sortBy('id')->values(); @endphp @foreach ($currencies as $index => $item) @endforeach @foreach ($sortedSaleLists as $index => $row) @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) @endif @if ($item['symbol'] != $row['currency_symbol']) @endif @endforeach @endforeach @foreach ($currencies as $index => $item) @endforeach @if ($sale['outstanding_amount'] > 0) @foreach ($currencies as $index => $item) @endforeach @endif @if($sale['status'] != 2 && $sale['status'] != 3) @foreach ($currencies as $index => $item) @endforeach @endif
ល.រ មុខទំនិញ ចំនួន តម្លៃរាយ {{ $item['name'] }}
{{ $index + 1 }} {{ $row['product_variation_name'] }} {{ $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']) }} {{ $row['currency_code'] == 'THB' ? 'B' : $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['total_price']) }} {{ $item['code'] == 'THB' ? 'B' : $item['symbol'] }} 0

ផ្សេងៗ:

{{ $sale['remark'] }}
{!! $invoice_template['term_and_condition'] !!}
សរុប: @foreach ($get_sub_total_sum_by_currency as $i => $obj) @if ($obj['currency_id'] == $item['id']) {{ $item['pdf_symbol'] }} {{ App\Helpers\StringHelper::currency($obj['total_price']) }} @endif @endforeach
ជំពាក់ចាស់: @if ($sale['currency_id'] == $item['id']) {{ $item['pdf_symbol'] }} {{ App\Helpers\StringHelper::currency( ($sale['outstanding_amount'] / $sale['sell_out_price']) * $item['sell_out_price'], ) }} @else {{ $item['pdf_symbol'] }} 0 @endif
សង: @foreach ($payment_history['payment_history_detail'] as $index => $phd) @if ($phd['currency_id'] == $item['id']) {{ $item['pdf_symbol'] }} {{ App\Helpers\StringHelper::currency($phd['total_amount']) }} @endif @endforeach
ជំពាក់: {{ $currencies[0]['pdf_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['total_payment'] - $sale['total_paid']) }}
 

ហត្ថលេខា និង ឈ្មោះអ្នកអតិថិជន

ហត្ថលេខា និង ឈ្មោះអ្នកដឹក

ហត្ថលេខា និង ឈ្មោះអ្នកលក់

{!! $invoice_template['footer_text'] !!}