{{--Letterhead Table--}}
@if( !empty($user_branch['letter_head']))
|
របាយការណ៏លក់ទាំងអស់ Sales Report |
|||||||||||
{{ App\Helpers\StringHelper::dateTimeFormat($filter['date_range']['startDate']) }} ~ {{ App\Helpers\StringHelper::dateTimeFormat($filter['date_range']['endDate']) }} |
Invoice Number / លេខវិក័យប័ត្រ: | @if(!empty($invoice_number)) {{ $invoice_number }} @else មិនមាន @endif | |
warehouse / ឃ្លាំង: | @if(!empty($warehouse_name)) {{ $warehouse_name }} @else ទាំងអស់ @endif | |
customer / អតិថិជន: | @if(!empty($customer_name)) {{ $customer_name }} @else ទាំងអស់ @endif |
ស្ថានភាពលក់ Sale Status |
ស្ថានភាពបង់ប្រាក់ Payment Status |
កាលបរិច្ឆេទ Sale Date |
លេខវិក័យប័ត្រ Invoice no. |
តុ Table |
សរុបមុនបញ្ចុះតម្លៃ Total Before Discount |
បញ្ចុះតម្លៃ Discount |
សរុបក្រាយបញ្ចុះតម្លៃ Total After Discount |
@foreach ($sale_report as $item)
---|---|---|---|---|---|---|---|
{{ App\Helpers\StringHelper::getSaleStatus($item->status)['name_kh'] }} | @if (floatval($item->total_paid) >= floatval($item->total_payment)) បានបង់រួច @else មិនទាន់បង់ @endif | {{ App\Helpers\StringHelper::dateTimeFormat($item->transaction_date) }} | {{ $item->ref_no }} | {{ $item->table_name }} | {{ $item->currency_symbol }} {{App\Helpers\StringHelper::currency($item->total_payment + $item->discount_amount) }} | @if($item->discount_amount > 0) {{ $item->currency_symbol }} {{ App\Helpers\StringHelper::currency($item->discount_amount) }} {{ $item->discount_type == 0 ? '(-'.App\Helpers\StringHelper::currency($item->discount_value).'%)' : '' }} @else {{ '' }} @endif | {{ $item->currency_symbol }} {{App\Helpers\StringHelper::currency($item->total_payment) }} |
Total In {{ $currency->code }} | {{ $currency->symbol }} {{ App\Helpers\StringHelper::currency( ($total_by_transaction['total_price_default']+$total_by_transaction['total_discount_amount_default']) / $default_sell_out_price * $currency->sell_out_price ) }} | {{ $currency->symbol }} {{ App\Helpers\StringHelper::currency( ($total_by_transaction['total_discount_amount_default']) / $default_sell_out_price * $currency->sell_out_price ) }} | {{ $currency->symbol }} {{ App\Helpers\StringHelper::currency( ($total_by_transaction['total_price_default']) /$default_sell_out_price * $currency->sell_out_price ) }} |