{{ $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
| --}}
@php($i++)
@endforeach
@endif