@push('css')
@endpush
@if (!userPermission('fees.fees-invoice-store'))
@push('css')
@endpush
@endif
@lang('common.sl')
@lang('common.student')
@lang('admin.admission_no')
@lang('accounts.amount')
@lang('fees::feesModule.waiver')
@lang('fees.fine')
@lang('fees.paid')
@lang('accounts.balance')
@lang('common.status')
@lang('common.date')
@lang('common.action')
@foreach ($record->feesInvoice as $key => $studentInvoice)
@php
$amount = $studentInvoice->Tamount;
$weaver = $studentInvoice->Tweaver;
$fine = $studentInvoice->Tfine;
$paid_amount = $studentInvoice->Tpaidamount;
$sub_total = $studentInvoice->Tsubtotal;
$balance = $amount + $fine - ($paid_amount + $weaver);
@endphp
@lang('common.sl')
@lang('common.student')
@lang('student.class_section')
@lang('accounts.amount')
@lang('fees::feesModule.waiver')
@lang('fees.fine')
@lang('fees.paid')
@lang('accounts.balance')
@lang('common.status')
@lang('common.date')
@lang('common.action')
@endforeach
{{ $key + 1 }}
{{ @$studentInvoice->studentInfo->full_name }}
{{ @$studentInvoice->recordDetail->class->class_name }}
({{ @$studentInvoice->recordDetail->section->section_name }})
{{ $amount }}
{{ $weaver }}
{{ $fine }}
{{ $paid_amount }}
{{ $balance }}
@if ($balance == 0)
@else
@if ($paid_amount > 0)
@else
@endif
@endif
{{ dateConvert($studentInvoice->create_date) }}