client : {{$customer->name}} |
|
|
{{ getLoginUserLanguage() == 'cn' ? 'Total Sales' : __('messages.pdf.total_sales') }}: | {{ currencyAlignment(number_format((float)$salesData['totalSale'] , 2)) }} |
{{ getLoginUserLanguage() == 'cn' ? 'Total Amount' : __('messages.pdf.total_amount') }}: | {{ currencyAlignment(number_format((float)$salesData['totalAmount'] , 2)) }} |
{{ getLoginUserLanguage() == 'cn' ? 'Total Paid' : __('messages.pdf.total_paid') }}: | {{ currencyAlignment(number_format((float)$salesData['totalPaid'] , 2)) }} |
{{ getLoginUserLanguage() == 'cn' ? 'Total Sale Due' : __('messages.pdf.total_sale_due') }}: | {{ currencyAlignment(number_format((float)$salesData['totalSalesDue'] , 2)) }} |
{{ getLoginUserLanguage() == 'cn' ? 'Date' : __('messages.pdf.date') }} | {{ 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')}} | {{$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 |