@php($totalDue = 0) @if(count($students)>0) @foreach($students as $student) @endforeach @endif
SL Name ID Father Mob. Mother Mob. Description Amount
{{ $loop->iteration }} {{ $student['info']->name }} {{ $student['info']->roll }} {{ $student['info']->father_mobile }} {{ $student['info']->mother_mobile }}
    @foreach($student['invoices'] as $invoice) @if(isset($invoice->previousDue)) @php($previousDue = $invoice->previousDue)
  • Previous Due({{ $previousDue->description }}) - {{ numberFormat($previousDue->receivable) }}
  • @endif @foreach($invoice->activeDetails as $activeDetail) @php($item = $activeDetail->classItem->item)
  • {{-- --}} @if($item->billing_cycle==3) {{ $item->name }} ({{ $activeDetail->month->name }}) - {{ numberFormat($activeDetail->receivable_amount) }} @else {{ $item->name }} - {{ numberFormat($activeDetail->receivable_amount) }} @endif {{--
    --}}
  • @endforeach @endforeach
{{ numberFormat($due = $student['invoices']->sum('receivable_amount')) }} @php($totalDue += $due)
Total {{ numberFormat($totalDue) }}