{{ $purchase->reference_code }} |
{{ getLoginUserLanguage() == 'cn' ? 'Date' : __('messages.pdf.date') }}: {{ \Carbon\Carbon::parse($purchase->created_at)->format('Y-m-d') }}{{ getLoginUserLanguage() == 'cn' ? 'Number' : __('messages.pdf.number') }}: {{ $purchase->reference_code }}{{ getLoginUserLanguage() == 'cn' ? 'Status' : __('messages.pdf.status')}}: @if($purchase->status == \App\Models\Purchase::RECEIVED) Received @elseif($purchase->status == \App\Models\Purchase::PENDING) Pending @else Ordered @endif |
|
|
{{ getLoginUserLanguage() == 'cn' ? 'Product' : __('messages.pdf.product') }} | {{ getLoginUserLanguage() == 'cn' ? 'UNIT COST' : __('messages.pdf.unit_cost')}} | {{ getLoginUserLanguage() == 'cn' ? 'QUANTITY' : __('messages.pdf.quantity') }} | {{ getLoginUserLanguage() == 'cn' ? 'DISCOUNT' : __('messages.heading_discount') }} | {{ getLoginUserLanguage() == 'cn' ? 'TAX' : __('messages.pdf.tax') }} | {{ getLoginUserLanguage() == 'cn' ? 'TOTAL' : __('messages.heading_total') }} |
---|---|---|---|---|---|
{{$purchaseItem->product->name}} | {{currencyAlignment(number_format((float)$purchaseItem->net_unit_cost, 2))}} | {{$purchaseItem->quantity}} | {{currencyAlignment(number_format((float)$purchaseItem->discount_amount, 2))}} | {{currencyAlignment(number_format((float)$purchaseItem->tax_amount, 2))}} | {{currencyAlignment(number_format((float)$purchaseItem->sub_total, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Order Tax' : __('messages.pdf.order_tax') }} | {{currencyAlignment(number_format((float)$purchase->tax_amount, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Discount' : __('messages.pdf.discount') }} | {{currencyAlignment(number_format((float)$purchase->discount, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Shipping' : __('messages.pdf.shipping') }} | {{currencyAlignment(number_format((float)$purchase->shipping, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Total' : __('messages.pdf.total') }} | {{currencyAlignment(number_format((float)$purchase->grand_total, 2))}} |
{{ getLoginUserLanguage() == 'cn' ? 'Paid Amount' : __('messages.pdf.paid_amount') }} | {{currencyAlignment(number_format((float)$purchase->received_amount, 2))}} |