@if(!empty($invoices)) @foreach($invoices as $key => $invoice) @endforeach @else @endif
# Student Ref Amount Paid Balance Date Action
{{$key+1}} @if( !empty($invoice->avatar) ) @else @endif {{ $invoice->fname }} {{ $invoice->lname }} {{ $invoice->email }} #{{ $invoice->reference }} {{ money($invoice->amount) }} {{ money($invoice->amountpaid) }} {{ money($invoice->amount - $invoice->amountpaid) }} {{ date('d F Y',strtotime($invoice->created_at)) }} Preview
It's empty here!