{{----}} @if (isset($data['fee_master']) && $data['fee_master']->count() > 0) @php($i=1) @foreach($data['fee_master'] as $feemaster) {{----}} @if (isset($data['fee_collection']) && $data['fee_collection']->count() > 0) @php($i=1) @foreach($data['fee_collection'] as $fee_collection) @if($fee_collection->fee_masters_id == $feemaster->id) @php($i++) @endif @endforeach @endif @php($i++) @endforeach @endif {{----}}
S.No. {{__('form_fields.student.fields.semester')}} FeeHead DueDate Amount Mode Date Di Fi Paid Balance RemarkPayOnline
{{ $i }} {{ ViewHelper::getSemesterById($feemaster->semester) }} {{ ViewHelper::getFeeHeadById($feemaster->fee_head) }} {{ \Carbon\Carbon::parse($feemaster->fee_due_date)->format('Y-m-d')}} {{ $feemaster->fee_amount }} {{ $feemaster->feeCollect()->sum('discount')?$feemaster->feeCollect()->sum('discount'):"-" }} {{ $feemaster->feeCollect()->sum('fine')?$feemaster->feeCollect()->sum('fine'):'-' }} {{ $feemaster->feeCollect()->sum('paid_amount')?$feemaster->feeCollect()->sum('paid_amount'):'-' }} @php($net_balance = ($feemaster->fee_amount - ($feemaster->feeCollect()->sum('paid_amount') + $feemaster->feeCollect()->sum('discount')))+ $feemaster->feeCollect()->sum('fine')) {{ $net_balance?$net_balance:'-' }} @if($net_balance == 0) Paid @elseif($net_balance < 0 ) Negative @elseif($net_balance < $feemaster->fee_amount) Partial @else Due @endif Print @if($net_balance > 0 && is_int($net_balance)) @include('account.fees.payment.online-payment') @endif
{{ $fee_collection->payment_mode }} {{ \Carbon\Carbon::parse($fee_collection->date)->format('Y-m-d')}} {{ $fee_collection->discount?$fee_collection->discount:'-' }} {{ $fee_collection->fine?$fee_collection->fine:'-' }} {{ $fee_collection->paid_amount?$fee_collection->paid_amount:'-' }} {{ ViewHelper::getUserNameId($fee_collection->created_by) }}
Total {{ $data['student']->fee_amount?$data['student']->fee_amount:'-' }} {{ $data['student']->discount?$data['student']->discount:'-' }} {{ $data['student']->fine?$data['student']->fine:'-' }} {{ $data['student']->paid_amount?$data['student']->paid_amount:'-' }} {{ $data['student']->balance?$data['student']->balance:'-' }} @if($data['student']->balance == 0) Paid @elseif($data['student']->balance < 0 ) Negative @elseif($data['student']->balance < $data['student']->fee_amount) Partial @else Due @endif