@if($loanInfo)
@php $total_currentQuarterDisbursementAmount = 0; $total_currentQuarterRepayAmount_Principal = 0; $total_currentQuarterRepayAmount_Interest = 0; $total_currentQuarterCollectionAmount_Principal = 0; $total_currentQuarterCollectionAmount_Interest = 0; $total_disbursementAmount_upto = 0; $total_collectionAmount_Principal_upto = 0; $total_collectionAmount_Interest_upto = 0; $total_numberOfLoanAccounts = 0; $total_balance = 0; $total_totalAdvanceInstallmentAmount = 0; @endphp @foreach($loanInfo as $key => $loanItem) @if( $key == 0 ) @endif @if($loanItem['loan_purpose_code_level_1_group']) @endif @if($loanItem['loan_purpose_code_level_3_group']) @endif @php if( $loanItem['currentQuarterRepayAmount_Principal'] == 0 ) $recoveryRate = 0; else $recoveryRate = ( $loanItem['currentQuarterCollectionAmount_Principal'] / $loanItem['currentQuarterRepayAmount_Principal'] ) * 100; @endphp @php $total_currentQuarterDisbursementAmount += floatVal($loanItem['currentQuarterDisbursementAmount']); $total_currentQuarterRepayAmount_Principal += floatVal($loanItem['currentQuarterRepayAmount_Principal']); $total_currentQuarterRepayAmount_Interest += floatVal($loanItem['currentQuarterRepayAmount_Interest']); $total_currentQuarterCollectionAmount_Principal += floatVal($loanItem['currentQuarterCollectionAmount_Principal']); $total_currentQuarterCollectionAmount_Interest += floatVal($loanItem['currentQuarterCollectionAmount_Interest']); $total_disbursementAmount_upto += floatVal($loanItem['disbursementAmount_upto']); $total_collectionAmount_Principal_upto += floatVal($loanItem['collectionAmount_Principal_upto']); $total_collectionAmount_Interest_upto += floatVal($loanItem['collectionAmount_Interest_upto']); $total_numberOfLoanAccounts += intVal($loanItem['numberOfLoanAccounts']); $total_balance += floatVal($loanItem['balance']); $total_totalAdvanceInstallmentAmount += floatVal($loanItem['totalAdvanceInstallmentAmount']); @endphp @endforeach @php if( $total_currentQuarterRepayAmount_Principal == 0 ) $recoveryRate = 0; else $recoveryRate = ( $total_currentQuarterCollectionAmount_Principal / $total_currentQuarterRepayAmount_Principal ) * 100; @endphp
Types of Loan Loan Disbursement (LD) During this Half Year (Principal) Loan Recoverable(LRc) During this Half Year Loan Realization(LR) in this Half Year Cumulative Loan Disbursement after the end of this Half Year (Principal) Cumulative Loan Collection after the end of this Half Year Number of Borrowers Loan Balance (Principal) Tenure of the Loan Total Number of Installments Amount of Advance Installments at the end of this Half Year (Principal) Recovery Rate of this Half Year Declared Rate of Service Charge(%)
Category Sub-Category Sub-Sub-Category Principal Service Charge Principal Service Charge Principal Service Charge
1 2 3 4 5 6 7 8 9 10 = 6-7 11 12 13 14 15
{{ $loanItem['mraProductGroup'] }}{{ $loanItem['loan_purpose_level_1'] }}{{ $loanItem['loan_purpose_level_3'] }}{{ number_format($loanItem['currentQuarterDisbursementAmount'], 2) }} {{ number_format($loanItem['currentQuarterRepayAmount_Principal'], 2) }} {{ number_format($loanItem['currentQuarterRepayAmount_Interest'], 2) }} {{ number_format($loanItem['currentQuarterCollectionAmount_Principal'], 2) }} {{ number_format($loanItem['currentQuarterCollectionAmount_Interest'], 2) }} {{ number_format($loanItem['disbursementAmount_upto'], 2) }} {{ number_format($loanItem['collectionAmount_Principal_upto'], 2) }} {{ number_format($loanItem['collectionAmount_Interest_upto'], 2) }} {{ $loanItem['numberOfLoanAccounts'] }} {{ number_format($loanItem['balance'], 2) }} {{ $loanItem['tenureOfLoan'] }} {{ $loanItem['totalNoOfInstallments'] }} {{ number_format($loanItem['totalAdvanceInstallmentAmount'], 2) }}{{ number_format($recoveryRate, 2) }}% {{ $loanItem['declaredRateOfServiceCharge'] }}
Grand total {{ number_format( $total_currentQuarterDisbursementAmount, 2 ) }} {{ number_format( $total_currentQuarterRepayAmount_Principal, 2 ) }} {{ number_format( $total_currentQuarterRepayAmount_Interest, 2 ) }} {{ number_format( $total_currentQuarterCollectionAmount_Principal, 2 ) }} {{ number_format( $total_currentQuarterCollectionAmount_Interest, 2 ) }} {{ number_format( $total_disbursementAmount_upto, 2 ) }} {{ number_format( $total_collectionAmount_Principal_upto, 2 ) }} {{ number_format( $total_collectionAmount_Interest_upto, 2 ) }} {{ $total_numberOfLoanAccounts }} {{ number_format( $total_balance, 2 ) }} {{ number_format( $total_totalAdvanceInstallmentAmount, 2 ) }} {{ number_format( $recoveryRate, 2 ) }}%
@endif