Student Ledger - Due: {{ number_format($data['student']->balance, 2) }} [{{ ViewHelper::convertNumberToWord($data['student']->balance ) }}]

{{ $panel }} Record list on table. Filter {{ $panel }} using the filter.
@if (isset($data['fee_master']) && $data['fee_master']->count() > 0) @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 @endforeach @endif
Sem Head DueDate Amount PayId Mode Date Di Fi Paid Balance Remark Action
{{ 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
@if($net_balance > 0) @endif @if($net_balance > 0) @endif
{{ $i.' of '.$fee_collection->fee_masters_id }} {{ $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']->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