{{--

 Fees List

--}}
{{-- Ledger Due Detail Slip Total Balance Today Receipt Detail Receipt --}} {{-- @if($data['student']->balance > 0) @include($view_path.'.fees.includes.pay-online') @endif--}}
{{----}} @if (isset($data['fee_master']) && $data['fee_master']->count() > 0) @php($i=1) @foreach($data['fee_master'] as $feemaster) {{----}} @php($i++) @endforeach @endif {{----}}
S.No. Sem./Sec. Head DueDate Amount Dis. Fine Paid Due StatusPayOnline
{{ $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
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