@if ($invoice_template['is_display_logo'] == 1) @endif

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

{{-- @if ($invoice_template['is_display_logo'] == 1) --}} {{-- --}} {{-- @endif --}}
{!! $invoice_template['header_text'] !!}
{{-- customer block --}}
អតិថិជន
Customer
{{ $sale['customer_name'] }}
អាស័យដ្ឋាន
Address
{{ $sale['customer_address'] }}
លេខទូរស័ព្ទ
Phone
{{ $sale['customer_phone'] }}
{{-- company block --}}
លេខវិក័យប័ត្រ
Invoice No
{{ $sale['ref_no'] }}
អ្នកលក់
Seller
{{ $sale['seller'] }}
កាលបរិច្ឆេទ
Date
{{ $sale['transaction_date'] }}
{{-- --}} @foreach ($sale_lists as $row) {{-- --}} @endforeach {{-- total by currency --}} {{-- sub total and remark --}} {{-- delivery --}} {{-- discount --}} {{-- total --}}
កូដ
CODE
ការពិពណ៌នា
Description
បរិមាណ
QUANTITY
តម្លៃ
PRICE
បញ្ចុះតម្លៃ
Discount
សរុប
TOTAL
{{ $row['code'] }} {{ $row['product_variation_name'] }} {{ $row['price'] == 0 ? '(ថែម)' : '' }} @if ($row['remark'] != null)
*{{ $row['remark'] }} @endif
{{ App\Helpers\StringHelper::roundUp($row['qty'], 3) }}  {{ $row['unit_type_name'] }} {{ $row['currency_code'] == 'THB' ? 'B' : $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['price']) }} @if ($row['discount_value'] > 0) @if ($row['discount_type'] == App\Enums\DiscountTypeStatus::getFixId()) {{ $row['currency_code'] == 'THB' ? 'B' : $row['currency_symbol'] }} @endif {{ App\Helpers\StringHelper::currency($row['discount_value']) }} @if ($row['discount_type'] == App\Enums\DiscountTypeStatus::getPercentageId()) % @endif @endif {{ $row['currency_code'] == 'THB' ? 'B' : $row['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($row['total_price']) }}
សរុបជារូបិយប័ណ្ណ
Total By Currency
@foreach (json_decode($sale['total_payment_by_currency']) as $index => $row)
@endforeach

ផ្សេងៗ:

{{ $sale['remark'] }}
{!! $invoice_template['term_and_condition'] !!}
សរុប
Sub Total
{{ $sale['currency_code'] == 'THB' ? 'B' : $sale['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['total_payment'] + $sale['discount_amount']) }}
សេវ៉ាដឹក
Delivery
{{ $sale['currency_code'] == 'THB' ? 'B' : $sale['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['delivery_amount']) }}
បញ្ចុះតម្លៃ
Discount
@if ($sale['discount_type'] == 1) {{ $sale['currency_symbol'] }} @endif {{ App\Helpers\StringHelper::currency($sale['discount_value']) }} @if ($sale['discount_type'] == 0) % @endif
សរុប
Total
{{ $sale['currency_code'] == 'THB' ? 'B' : $sale['currency_symbol'] }} {{ App\Helpers\StringHelper::currency($sale['total_payment']) }}

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