@extends('report.pdf.layouts.app') @section('pdf_content')
| @lang('SL No') | @lang('Purchase Date') | @lang('Invoice Number') | @lang('Location') | @lang('Supplier') | @lang('Subtotal') | @lang('Discount') | @lang('Tax / Vat') | @lang('Shiping Charge') | @lang('Gross Discount') | @lang('Payable Amount') | @lang('Total Payment') | @lang('Due Amount') |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ dateformat($item->purchase_date) }} | {{ $item->invoice_no }} | {{ $item->branch_name }} | {{ $item->supplier }} | {{ numberformat($item->amount) }} | {{ numberformat($item->total_discount) }} | {{ numberformat($item->total_vat) }} | {{ numberformat($item->shiping_charge) }} | {{ numberformat($item->gross_discount_amount) }} | {{ numberformat($item->nettotal) }} | {{ numberformat($payment) }} | {{ numberformat($due) }} |
| Total | {{ numberFormat(calculateSubtotal($items, 'amount')) }} | {{ numberFormat(calculateSubtotal($items, 'total_discount')) }} | {{ numberFormat(calculateSubtotal($items, 'total_vat')) }} | {{ numberFormat(calculateSubtotal($items, 'shiping_charge')) }} | {{ numberFormat(calculateSubtotal($items, 'gross_discount_amount')) }} | {{ numberFormat(calculateSubtotal($items, 'nettotal')) }} | {{ numberFormat($net_payment) }} | {{ numberFormat($net_due) }} | ||||