@if(count($invoices)>0) @foreach($invoices as $invoice) @endforeach @endif @if(count($invoices)>0) @endif
SL Name Stdn. ID Inv. No. Description Amount Options
{{ $loop->iteration }} {{ $invoice->student->name }} {{ $invoice->student->roll }} {{ $invoice->invoice_no }}
    @if(isset($invoice->previousDue)) @php($previousDue = $invoice->previousDue)
  • Previous Due ({{ $previousDue->description }})
  • @endif @foreach($invoice->activeDetails as $detail) @php($paymentItem = $detail->classItem->item)
  • {{ $paymentItem->name }} @if($paymentItem->billing_cycle==2) {{ $invoice->year }} - {{ $invoice->year+1 }} @elseif($paymentItem->billing_cycle==3) ({{ $detail->month->name }}) @endif
  • @endforeach
{{ numberFormat($invoice->receivable_amount) }} View
Total {{ numberFormat($invoices->sum('receivable_amount')) }} --