@if(count($reportData) > 0)
| S/L |
Invoice Code |
Invoice Amount |
Payment Amount |
Due Amount |
Sale Details |
@php
$totalDueAmount=0;
$totalPaymentAmount=0;
@endphp
@foreach($reportData as $value)
| {{ $loop->iteration }} |
{{ $value->invoice_code }} |
{{ $value->invoice_amount }} |
{{ $value->payment_amount }} |
{{ $value->due_amount }} |
|
@php
$totalPaymentAmount = $totalPaymentAmount+$value->payment_amount;
$totalDueAmount = $totalDueAmount+$value->due_amount;
@endphp
@endforeach
|
|
Total |
{{ $totalPaymentAmount }} |
{{ $totalDueAmount }} |
|
@endif