@push('css') @endpush
SL | Date | Customer Name | Sub Total | Discount | Shipping Charge | Payable Amount | Paid | Due |
---|---|---|---|---|---|---|---|---|
{{ ++$i }} | {{ $saleInvoice->sale_date }} | @if($saleInvoice->Contact) {{ $saleInvoice->Contact->first_name }} {{ $saleInvoice->Contact->last_name }} @endif | {{ $saleInvoice->total_amount }} @php $subTotal +=$saleInvoice->total_amount @endphp | {{ $saleInvoice->discount }} @php $discount += $saleInvoice->discount @endphp | {{ $saleInvoice->shipping_charge }} @php $shipping_charge += $saleInvoice->shipping_charge @endphp | {{ $saleInvoice->payable_amount }} @php $grand_total += $saleInvoice->payable_amount @endphp | {{ $saleInvoice->SalePayment->sum('total_amount') }} @php $paid_amount += $saleInvoice->SalePayment->sum('total_amount') @endphp | {{ $saleInvoice->payable_amount - $saleInvoice->SalePayment->sum('total_amount')}} @php $due += $saleInvoice->payable_amount - $saleInvoice->SalePayment->sum('total_amount') @endphp |
{{ $subTotal }} | {{ $discount }} | {{ $shipping_charge }} | {{ $grand_total }} | {{ $paid_amount }} | {{ $due }} |