@if($data['row'] && $data['row']->count() > 0)
{{$data['row']['print_head']}}

@for ($i = 0; $i <= $data['keys']; $i++) @if (isset($data['row'][$i]['fee_collection']) && $data['row'][$i]['fee_collection']->count() > 0)
{{$data['row'][$i]['table_head']}}

@php($sn=1) @foreach($data['row'][$i]['fee_collection'] as $feesCollection) @php($sn++) @endforeach
S.N. Head Amount
{{ $sn }}. {{ ViewHelper::getFeeHeadById($feesCollection[0]->fee_head) }} {{ $feesCollection->sum('paid_amount') }}
Total {{ $data['row'][$i]['fee_collection_total'] }}
@endif @endfor @endif