{{ getLoginUserLanguage() == 'cn' ? 'Sale List' : __('messages.pdf.sale_list') }} |
{{ getLoginUserLanguage() == 'cn' ? 'Date' : __('messages.pdf.date') }} | {{ getLoginUserLanguage() == 'cn' ? 'Customer Name' : __('messages.pdf.customer_name') }} | {{ getLoginUserLanguage() == 'cn' ? 'Reference' : __('messages.pdf.reference') }} | {{ getLoginUserLanguage() == 'cn' ? 'Paid Amount' : __('messages.pdf.paid_amount') }} | {{ getLoginUserLanguage() == 'cn' ? 'Due Amount' : __('messages.pdf.due_amount') }} | {{ getLoginUserLanguage() == 'cn' ? 'Payment Status' : __('messages.pdf.payment_status') }} |
---|---|---|---|---|---|
{{$sale->date->format('Y-m-d')}} | {{$customer->name}} | {{$sale->reference_code}} | {{currencyAlignment(number_format((float)$sale->payments->sum('amount') , 2))}} | {{currencyAlignment(number_format((float)$sale->grand_total - $sale->payments->sum('amount') , 2))}} | @if($sale->payment_status == \App\Models\Sale::PAID) Paid @elseif($sale->payment_status == \App\Models\Sale::UNPAID) Unpaid @elseif($sale->payment_status == \App\Models\Sale::PARTIAL_PAID) Partial @endif |