ស៊ីងស៊ីងម៉ាត (2)
鑫星中国超市(2)
@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') {{--
អតិថិជន: {{ $sale['customer_name'] }}
វិក័យប័ត្រ:
{{ $sale['ref_no'] }}
អាស័យដ្ឋាន: {{ $sale['customer_address'] }} កាលបរិច្ឆេទ: {{ $sale['transaction_date'] }}
លេខទូរស័ព្ទ: {{ $sale['customer_phone'] }} បេឡា: {{ $user }}
--}}
អតិថិជន: {{ $sale['customer_name'] }}
អាស័យដ្ឋាន: {{ $sale['customer_address'] }}
លេខទូរស័ព្ទ: {{ $sale['customer_phone'] }}
{{-- company block --}}
វិក័យប័ត្រ: {{ $sale['ref_no'] }}
កាលបរិច្ឆេទ: {{ $sale['transaction_date'] }}
បេឡា: {{ $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['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']) }} {{ $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['total_price']) }}
{{ $sale['remark'] }} {!! $invoice_template['term_and_condition'] !!} សរុប: @foreach ($currencies as $index => $item) {{ $item['pdf_symbol'] }} @if ($item['is_ceil'] == 1) {{ App\Helpers\StringHelper::currency(ceil((($sale['total_payment'] + $sale['discount_amount']) * $item['buy_in_price']) / 100) * 100) }} @else {{ 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['remark'] }} {!! $invoice_template['term_and_condition'] !!}
--}}
 
អតិថិជន
អ្នកលក់