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