@php
$total = 0;
@endphp
@foreach (@$data['fees_assign_children'] as $item)
@if($item->fees_collect_count == 0)
@php
$total += @$item->feesMaster->amount;
if(date('Y-m-d') > $item->feesMaster->date) {
$total += @$item->feesMaster->fine_amount;
}
@endphp
@if(date('Y-m-d') > $item->feesMaster->date)
@else
@endif
{{ @$item->feesMaster->group->name }} |
{{ @$item->feesMaster->type->name }} |
{{ dateFormat(@$item->feesMaster->date) }} |
{{ @$item->feesMaster->amount }}
@if(date('Y-m-d') > $item->feesMaster->date)
+ {{ @$item->feesMaster->fine_amount }}
@endif
|
@endif
@endforeach
|
|
{{ ___('common.total') }} |
{{ @$total }} |