{{ $sale->reference_code }} |
{{ getLoginUserLanguage() == 'cn' ? 'Date' : __('messages.pdf.date') }}: {{ \Carbon\Carbon::parse($sale->created_at)->format('Y-m-d') }}{{ getLoginUserLanguage() == 'cn' ? 'Number' : __('messages.pdf.number') }}: {{ $sale->reference_code }}{{ getLoginUserLanguage() == 'cn' ? 'Payment Status' : __('messages.pdf.payment_status') }}: {{ $sale->payment_status == \App\Models\Sale::PAID ? 'Paid' : 'Unpaid' }} |
|
|
{{ getLoginUserLanguage() == 'cn' ? 'Product' : __('messages.pdf.product') }} | {{ getLoginUserLanguage() == 'cn' ? 'UNIT PRICE' : __('messages.pdf.unit_price') }} | {{ getLoginUserLanguage() == 'cn' ? 'QUANTITY' : __('messages.pdf.quantity') }} | {{ getLoginUserLanguage() == 'cn' ? 'DISCOUNT' : __('messages.heading_discount') }} | {{ getLoginUserLanguage() == 'cn' ? 'TAX' : __('messages.pdf.tax') }} | {{ getLoginUserLanguage() == 'cn' ? 'TOTAL' : __('messages.heading_total') }} |
---|---|---|---|---|---|
{{$saleItem->product->name}} | {{ currencyAlignment(number_format((float)$saleItem->net_unit_price, 2))}} | {{$saleItem->quantity}} | {{ currencyAlignment(number_format((float)$saleItem->discount_amount, 2))}} | {{ currencyAlignment(number_format((float)$saleItem->tax_amount, 2))}} | {{ currencyAlignment(number_format((float)$saleItem->sub_total, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Order Tax' : __('messages.pdf.order_tax') }} | {{ currencyAlignment(number_format((float)$sale->tax_amount, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Discount' : __('messages.pdf.discount') }} | {{ currencyAlignment(number_format((float)$sale->discount, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Shipping' : __('messages.pdf.shipping') }} | {{currencyAlignment(number_format((float)$sale->shipping, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Total' : __('messages.pdf.total') }} | {{currencyAlignment(number_format((float)$sale->grand_total, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Paid Amount' : __('messages.pdf.paid_amount') }} | {{currencyAlignment(number_format((float)$sale->payments->sum('amount'), 2))}} |