@if(count($duers) > 0) @foreach($duers as $key => $due) @endforeach @endif @php $total = 0; @endphp @foreach($duers as $key => $due) @php $total += $due->due_amount; @endphp @endforeach
Patient Id Name Mobile No Gender Amount Action
{{ $due->patient_id }} {{ $due->full_name }} {{ $due->mobile_no }} {{ $due->gender == 1 ? 'Male' : 'Female' }} Payment
Patient Id Name Mobile No Gender Amount
Total Due Amount {{$total}}