@php
$total_fees = 0;
$total_due = 0;
$total_paid = 0;
$total_disc = 0;
$balance_fees = 0;
@endphp
@foreach ($record->directFeesInstallments as $key => $feesInstallment)
@php
$total_fees += discount_fees($feesInstallment->amount, $feesInstallment->discount_amount);
$total_paid += $feesInstallment->paid_amount;
$total_disc += $feesInstallment->discount_amount;
$balance_fees += discount_fees($feesInstallment->amount, $feesInstallment->discount_amount) - $feesInstallment->paid_amount;
@endphp
@lang('fees.installment')
@lang('fees.amount') ({{ @generalSetting()->currency_symbol }})
@lang('common.status')
@lang('fees.due_date')
@lang('fees.payment_ID')
@lang('fees.mode')
@lang('fees.payment_date')
@lang('fees.discount') ({{ @generalSetting()->currency_symbol }})
@lang('fees.paid') ({{ @generalSetting()->currency_symbol }})
@lang('fees.balance')
@lang('common.action')
@php $this_installment = discount_fees($feesInstallment->amount, $feesInstallment->discount_amount); @endphp
@foreach ($feesInstallment->payments as $payment)
@php $this_installment = $this_installment - $payment->paid_amount; @endphp
{{ @$feesInstallment->installment->title }}
@if ($feesInstallment->discount_amount > 0)
{{ $feesInstallment->amount }}
{{ $feesInstallment->amount - $feesInstallment->discount_amount }}
@else
{{ $feesInstallment->amount }}
@endif
{{ @dateConvert($feesInstallment->due_date) }}
{{ $feesInstallment->discount_amount }}
{{ $feesInstallment->paid_amount }}
{{ discount_fees($feesInstallment->amount, $feesInstallment->discount_amount) - $feesInstallment->paid_amount }}
@endforeach
@if ($payment->active_status == 1)
{{ @smFeesInvoice($payment->invoice_no) }}
@endif
{{ $payment->payment_mode }}
{{ @dateConvert($payment->payment_date) }}
{{ $payment->discount_amount }}
{{ $payment->paid_amount }}
{{ $this_installment }}
@lang('fees.grand_total') ({{ @$currency }})
{{ currency_format($total_fees) }}
{{ currency_format($total_disc) }}
{{ currency_format($total_paid) }}
{{ $total_fees - $total_paid }}