@foreach ($items as $key => $item) @endforeach
@lang('SL No') @lang('Quatation Date') @lang('Invoice Number') @lang('Ref. Number') @lang('Location') @lang('Customer') @lang('Subtotal') @lang('Discount') @lang('Tax / Vat') @lang('Shiping Charge') @lang('Net Total') @lang('Actions')
{{ ($items->currentpage() - 1) * $items->perpage() + $key + 1 }} {{ dateformat($item->sale_date) }} {{ $item->invoice_no }} {{ $item->reference_no }} {{ $item->branch_name }} {{ $item->customer }} {{ numberformat($item->amount) }} {{ numberformat($item->total_discount) }} {{ numberformat($item->total_vat) }} {{ numberformat($item->shiping_charge) }} {{ numberformat($item->nettotal) }}
Total {{ numberFormat(calculateSubtotal($items, 'amount')) }} {{ numberFormat(calculateSubtotal($items, 'total_discount')) }} {{ numberFormat(calculateSubtotal($items, 'total_vat')) }} {{ numberFormat(calculateSubtotal($items, 'shiping_charge')) }} {{ numberFormat(calculateSubtotal($items, 'nettotal')) }}
@if ($items instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $items->links('layouts.paginate') }} @endif