Part-C
@foreach ($savingsCategories as $savingsCategory) @endforeach @foreach ($savingsCategories as $savingsCategory) @endforeach @php $totalMember = 0; $totalRS = 0; $totalMVS = 0; $totalSS = 0; $totalOTS = 0; $totalAllSavings = 0; $totalCumDisbursNo = 0; $totalcumLoanAmount = 0; $totalCumFullyPaidLoanNo = 0; $totalCumFullyPaidLoanAmount = 0; $totalExpLoanNo = 0; $totalExpLoanAmount = 0; $totalCurrentLoanNo = 0; $totalCurrentLoanAmount = 0; $totalCurrentDueLoanNo = 0; $totalCurrentDueLoanAmount = 0; $totalOverDueLoanNo = 0; $totalOverDueLoanAmount = 0; $totalOutstandingAmount = 0; foreach ($savingsCategories as $savingsCategory) { $totalSavings[$savingsCategory->id] = 0; } $count = 0; @endphp @foreach($closingData['closing']['fieldOfficerSamityData'] as $key => $perRowData) @if($perRowData['samityCode'] == 8880 && $perRowData['samityName'] == 'Custom' ) @php $totalCumDisbursNo += $perRowData['cumDisbursNo']; $totalcumLoanAmount += $perRowData['cumLoanAmount']; $totalCumFullyPaidLoanNo += $perRowData['cumFullyPaidLoanNo']; $totalCumFullyPaidLoanAmount += $perRowData['cumFullyPaidLoanAmount']; @endphp @else @php $totalRowSavings = 0; $totalMember += $perRowData['samityMember']; $totalCumDisbursNo += $perRowData['cumDisbursNo']; $totalcumLoanAmount += $perRowData['cumLoanAmount']; $totalCumFullyPaidLoanNo += $perRowData['cumFullyPaidLoanNo']; $totalCumFullyPaidLoanAmount += $perRowData['cumFullyPaidLoanAmount']; $totalExpLoanNo += $perRowData['expLoanNo']; $totalExpLoanAmount += $perRowData['expLoanAmount']; $totalCurrentLoanNo += $perRowData['currentLoanNo']; $totalCurrentLoanAmount += $perRowData['currentLoanAmount']; $totalCurrentDueLoanNo += $perRowData['currentDueLoanNo']; $totalCurrentDueLoanAmount += $perRowData['currentDueLoanAmount']; $totalOverDueLoanNo += $perRowData['overDueLoanNo']; $totalOverDueLoanAmount += $perRowData['overDueLoanAmount']; $totalOutstandingAmount += $perRowData['outstandingAmount']; @endphp @foreach ($savingsCategories as $savingsCategory) @php $totalSavings[$savingsCategory->id] += $perRowData['savings'][$savingsCategory->id]; $totalRowSavings += $perRowData['savings'][$savingsCategory->id]; @endphp @endforeach @php $totalAllSavings += $totalRowSavings; @endphp @endif @endforeach @foreach ($savingsCategories as $savingsCategory) @endforeach
SL# Samity Code End of This Period
Member Savings Write-Off Total Cum.
Disburse No
Total Cum.
Disbursement
Cum. Fully Paid No Cum. Fully Paid Amount Cum. Expired Loan No Cum. Expired Loan Amount Current Loan No Current Loan Amount Total Due Outstanding
{{$savingsCategory->shortName}} Total Current Expired
No. Amount No. Amount
{{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}}{{++$colNo}}{{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}} {{++$colNo}}
Inactive Samity Data {{$perRowData['cumDisbursNo']}} {{number_format($perRowData['cumLoanAmount'], 2) }} {{$perRowData['cumFullyPaidLoanNo']}} {{number_format($perRowData['cumFullyPaidLoanAmount'], 2) }}
{{++$count}} {{$perRowData['samityCode']}} {{$perRowData['samityMember']}}{{ number_format($perRowData['savings'][$savingsCategory->id], 2) }} {{ number_format($totalRowSavings, 2) }} {{$perRowData['cumDisbursNo']}} {{ number_format($perRowData['cumLoanAmount'], 2) }} {{$perRowData['cumFullyPaidLoanNo']}} {{ number_format($perRowData['cumFullyPaidLoanAmount'], 2) }} {{$perRowData['expLoanNo']}} {{ number_format($perRowData['expLoanAmount'], 2) }} {{$perRowData['currentLoanNo']}} {{ number_format($perRowData['currentLoanAmount'], 2) }} {{$perRowData['currentDueLoanNo']}} {{ number_format($perRowData['currentDueLoanAmount'], 2) }} {{$perRowData['overDueLoanNo']}} {{ number_format($perRowData['overDueLoanAmount'], 2) }} {{ number_format($perRowData['outstandingAmount'], 2) }}
Total {{$totalMember}}{{number_format($totalSavings[$savingsCategory->id], 2)}}{{ number_format($totalAllSavings, 2) }} {{$totalCumDisbursNo}} {{ number_format($totalcumLoanAmount, 2) }} {{$totalCumFullyPaidLoanNo}} {{ number_format($totalCumFullyPaidLoanAmount, 2) }} {{$totalExpLoanNo}} {{ number_format($totalExpLoanAmount, 2) }} {{$totalCurrentLoanNo}} {{ number_format($totalCurrentLoanAmount, 2) }} {{$totalCurrentDueLoanNo}} {{ number_format($totalCurrentDueLoanAmount, 2) }} {{$totalOverDueLoanNo}} {{ number_format($totalOverDueLoanAmount, 2) }} {{ number_format($totalOutstandingAmount, 2) }}