@php $transactionDate = \Carbon\Carbon::parse($sale['transaction_date']); $rePaymentDate = \Carbon\Carbon::parse($sale['repayment_date']); @endphp @php function convertToKhmerMonth($englishMonth) { $khmerMonths = [ 'January' => 'មករា', 'February' => 'កុម្ភៈ', 'March' => 'មីនា', 'April' => 'មេសា', 'May' => 'ឧសភា', 'June' => 'មិថុនា', 'July' => 'កក្តដា', 'August' => 'សីហា', 'September' => 'កញ្ញា', 'October' => 'តុលា', 'November' => 'វិច្ឆិកា', 'December' => 'ធ្នូ', ]; return $khmerMonths[$englishMonth] ?? $englishMonth; } @endphp
@if ($invoice_type == 'a4') @elseif ($invoice_type == 'a5') @endif
@php $img = $image_2r ?? ""; @endphp @if (file_exists($img )) @else
@endif
ផ្គត់ផ្គង់គ្រឿងអគ្គិសនីនិងគ្រឿងសំណង់គ្រប់ប្រភេទ
Electronic & Tools Accessories Supply
@php $img = $image_2r ?? ""; @endphp @if (file_exists($img )) @else
@endif
ផ្គត់ផ្គង់គ្រឿងអគ្គិសនីនិងគ្រឿងសំណង់គ្រប់ប្រភេទ
Electronic & Tools Accessories Supply
Tel: 0973 / 016 / 017 338 258
ABA: 000 393 761 MOM RAKSA
{!! $invoice_template['title'] !!} លេខវិក័យប័ត្រ: {{ $sale['ref_no'] }}
អ្នកលក់: {{ $sale['seller'] }}
ភ្នំពេញ: ថ្ងៃទី..{{ $transactionDate->day }}..ខែ...{{ convertToKhmerMonth($transactionDate->monthName) }}...ឆ្នាំ 202{{ substr($transactionDate->year, -1) }}
ទូទាត់: ថ្ងៃទី..{{ $rePaymentDate->day }}..ខែ...{{ convertToKhmerMonth($rePaymentDate->monthName) }}... ឆ្នាំ 202{{ substr($rePaymentDate->year, -1) }}
@if ($invoice_type == 'a5') @elseif ($invoice_type == 'a4') @endif
លក់ជូន: .................................................. អាស័យដ្ឋាន: ................................................... លេខទូរស័ព្ទ: ........................
លក់ជូន: ................................................. អាស័យដ្ឋាន: ..................................................... លេខទូរស័ព្ទ: ................................
{{ $sale['customer_name'] }} {{ $sale['customer_address'] }} {{ $sale['customer_phone'] }}
@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 @for ($i = 1; $i < $remainingRows; $i++) @endfor @foreach ($currencies as $index => $item) @foreach ($get_sub_total_sum_by_currency as $i => $obj) @if ($obj['currency_id'] == $item['id']) @if ($obj['total_price'] != 0) @endif @endif @endforeach @endforeach @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) @endif @endforeach
ល.រ លេខកូដ មុខទំនិញ ចំនួន តម្លៃរាយ សរុប
{{ $index + 1 }} {{ $row['code'] }} {{ $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_symbol'] }} {{ App\Helpers\StringHelper::currency($row['total_price']) }}
សរុប / Total {{ $item['pdf_symbol'] }} {{ App\Helpers\StringHelper::currency($obj['total_price']) }}
បញ្ចុះតម្លៃ / Discount @foreach ($currencies as $index => $item) @if ($item['symbol'] == $row['currency_symbol']) {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['discount_amount']) }} @endif @endforeach
សរុបចុងក្រោយ / Grand Total {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['total_payment']) }}
{{ $sale['remark'] }} {!! $invoice_template['term_and_condition'] !!}
 

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

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

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