@include('microfin/miscellaneous/monthEndPendingAlert') @php function num($number,$filRoundUup){ if ($filRoundUup==1) { // return number_format(round($number),2); return number_format($number); } else{ return number_format($number,2); } } if ($filServiceCharge==1) { $serviceChargeText = '(With Service Charge)'; } else{ $serviceChargeText = '(Without Service Charge)'; } @endphp
{{-- div for Company --}} @php $company = DB::table('gnr_company')->where('id', Auth::user()->company_id_fk)->select('name','address')->first(); if($filBranch==null){ $branchName = 'All'; } else{ $branchName = DB::table('gnr_branch')->where('id',$filBranch)->value('name'); } @endphp {{$company->name}}
{{$company->address}}
{{'Reporting Branch: '.$branchName}}
Notes to Balance Sheet - POMIS-5(A) {{$serviceChargeText}}
{{-- report info div --}} @php use Carbon\Carbon; $reportDate = Carbon::parse($filDate)->format('d-m-Y'); $printDate = Carbon::now()->format('d-m-Y'); @endphp
Report Date : {{$reportDate}} Print Date : {{$printDate}}
{{-- end report info div --}} {{-- First Table --}}
(A) Dissaster Management Fund(DMF) DMF Received from PKSF PKSF DMF USED NON-PKSF DMF USED
Note-1
- - - -
(B) Fund Account   PKSF NON-PKSF PKSF & NON-PKSF
Cumulative Service Charge Collection {{num($cumSerChargeCollectionPKSF,$filRoundUup)}} {{num($cumSerChargeCollectionNON_PKSF,$filRoundUup)}} {{num($cumSerChargeCollectionPKSF + $cumSerChargeCollectionNON_PKSF,$filRoundUup)}}
Total Others Income {{num($totalOthersIncomePKSF,$filRoundUup)}} {{num($totalOthersIncomeNON_PKSF,$filRoundUup)}} {{num($totalOthersIncomePKSF + $totalOthersIncomeNON_PKSF,$filRoundUup)}}
Cumulative Total Income {{num($cumSerChargeCollectionPKSF + $totalOthersIncomePKSF,$filRoundUup)}} {{num($cumSerChargeCollectionNON_PKSF + $totalOthersIncomeNON_PKSF,$filRoundUup)}} {{num($cumSerChargeCollectionPKSF + $cumSerChargeCollectionNON_PKSF + $totalOthersIncomePKSF + $totalOthersIncomeNON_PKSF,$filRoundUup)}}
Cumulative Total Expenditure {{num($cumTotalExpenditurePKSF,$filRoundUup)}} {{num($cumTotalExpenditureNON_PKSF,$filRoundUup)}} {{num($cumTotalExpenditurePKSF + $cumTotalExpenditureNON_PKSF,$filRoundUup)}}
Fund Account (Surplus) {{num($surplusPKSF,$filRoundUup)}} {{num($surplusNON_PKSF,$filRoundUup)}} {{num($surplusPKSF + $surplusNON_PKSF,$filRoundUup)}}
Reserve Fund {{num($reserveFundPKSF,$filRoundUup)}} {{num($reserveFundNON_PKSF,$filRoundUup)}} {{num($reserveFundPKSF + $reserveFundNON_PKSF,$filRoundUup)}}
Cumulative Total Salary Paid {{num($staffSalaryPKSF,$filRoundUup)}} {{num($staffSalaryNON_PKSF,$filRoundUup)}} {{num($staffSalaryPKSF + $staffSalaryNON_PKSF,$filRoundUup)}}
{{-- End First Table --}} {{-- Second Table --}} @if(in_array(1,$filBranchIds)) @if(count($pksfFundLoanProducts)>0)
@foreach($pksfFundLoanProducts as $key => $pksfLoanProduct) @php $cumulativeReceive = $pksfFundAccounts->where('loanProductId_fk',$pksfLoanProduct->id)->sum('loanAmount'); $accountIds = $pksfFundAccounts->where('loanProductId_fk',$pksfLoanProduct->id)->pluck('id')->toArray(); $paymentPrincipal = $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $paymentInterest = $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $outstanding = $pksfFundAccounts->whereIn('id',$accountIds)->sum('repayAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('totalAmount'); $duePrincipal = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('principalAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $dueInterest = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('interestAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $nextPayable = $nextPaymentSchedules->whereIn('accId_fk',$accountIds)->sum('totalAmount'); @endphp @if ($key==0) @endif @endforeach @php $cumulativeReceive = $pksfFundAccounts->sum('loanAmount'); $accountIds = $pksfFundAccounts->pluck('id')->toArray(); $paymentPrincipal = $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $paymentInterest = $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $outstanding = $pksfFundAccounts->whereIn('id',$accountIds)->sum('repayAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('totalAmount'); $duePrincipal = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('principalAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $dueInterest = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('interestAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $nextPayable = $nextPaymentSchedules->whereIn('accId_fk',$accountIds)->sum('totalAmount'); @endphp
PKSF Fund Account: Cumulative Receive Cumulative Payment Current Outstanding End of the Month Due Next 12 month Payable Amount
Principle Service Charge Principle Service Charge
Note-2 (PKSF)
{{$pksfLoanProduct->name}} {{num($cumulativeReceive,$filRoundUup)}} {{num($paymentPrincipal,$filRoundUup)}} {{num($paymentInterest,$filRoundUup)}} {{num($outstanding,$filRoundUup)}} {{num($duePrincipal,$filRoundUup)}} {{num($dueInterest,$filRoundUup)}} {{num($nextPayable,$filRoundUup)}}
Total {{num($cumulativeReceive,$filRoundUup)}} {{num($paymentPrincipal,$filRoundUup)}} {{num($paymentInterest,$filRoundUup)}} {{num($outstanding,$filRoundUup)}} {{num($duePrincipal,$filRoundUup)}} {{num($dueInterest,$filRoundUup)}} {{num($nextPayable,$filRoundUup)}}
@endif {{-- End Second Table --}} {{-- Third Table --}} @if(count($non_pksfFundLoanProducts)>0)
@foreach($non_pksfFundLoanProducts as $key => $non_pksfLoanProduct) @php $cumulativeReceive = $non_pksfFundAccounts->where('loanProductId_fk',$non_pksfLoanProduct->id)->sum('loanAmount'); $accountIds = $non_pksfFundAccounts->where('loanProductId_fk',$non_pksfLoanProduct->id)->pluck('id')->toArray(); $paymentPrincipal = $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $paymentInterest = $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $outstanding = $non_pksfFundAccounts->whereIn('id',$accountIds)->sum('repayAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('totalAmount'); $duePrincipal = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('principalAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $dueInterest = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('interestAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $nextPayable = $nextPaymentSchedules->whereIn('accId_fk',$accountIds)->sum('totalAmount'); @endphp @if ($key==0) @endif @endforeach @php $cumulativeReceive = $non_pksfFundAccounts->sum('loanAmount'); $accountIds = $non_pksfFundAccounts->pluck('id')->toArray(); $paymentPrincipal = $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $paymentInterest = $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $outstanding = $non_pksfFundAccounts->whereIn('id',$accountIds)->sum('repayAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('totalAmount'); $duePrincipal = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('principalAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('principalAmount'); $dueInterest = $paymentSchedules->whereIn('accId_fk',$accountIds)->sum('interestAmount') - $payments->whereIn('accId_fk',$accountIds)->sum('interestAmount'); $nextPayable = $nextPaymentSchedules->whereIn('accId_fk',$accountIds)->sum('totalAmount'); @endphp
NON-PKSF Fund Account: Cumulative Receive Cumulative Payment Current Outstanding End of the Month Due Next 12 month Payable Amount
Principle Service Charge Principle Service Charge
Note-2 (NON-PKSF)
{{$non_pksfLoanProduct->name}} {{num($cumulativeReceive,$filRoundUup)}} {{num($paymentPrincipal,$filRoundUup)}} {{num($paymentInterest,$filRoundUup)}} {{num($outstanding,$filRoundUup)}} {{num($duePrincipal,$filRoundUup)}} {{num($dueInterest,$filRoundUup)}} {{num($nextPayable,$filRoundUup)}}
Total {{num($cumulativeReceive,$filRoundUup)}} {{num($paymentPrincipal,$filRoundUup)}} {{num($paymentInterest,$filRoundUup)}} {{num($outstanding,$filRoundUup)}} {{num($duePrincipal,$filRoundUup)}} {{num($dueInterest,$filRoundUup)}} {{num($nextPayable,$filRoundUup)}}
@endif @endif {{-- End Third Table --}} {{-- Forth Table Note-3 --}} @php $totalSavBalMale = 0; $totalSavBalFemale = 0; @endphp @if (count($pksfMaleMemberIds)>0 || count($pksfFemaleMemberIds)>0)
@php $totalMaleSavCollection = $cumGenSavCollMale + $cumVOlSavCollMale + $cumOthSavCollMale; $totalFemaleSavCollection = $cumGenSavCollFemale + $cumVOlSavCollFemale + $cumOthSavCollFemale; @endphp @php $cumSavInterestMale = $cumGenSavInterestMale + $cumVOlSavInterestMale + $cumOthSavInterestMale; $cumSavInterestFemale = $cumGenSavInterestFemale + $cumVOlSavInterestFemale + $cumOthSavInterestFemale; @endphp {{-- Interest Will be added later --}} @php $cumGenSavMaleAB = $cumGenSavCollMale + $cumGenSavInterestMale; $cumGenSavFemaleAB = $cumGenSavCollFemale + $cumGenSavInterestFemale; $cumVOlSavMaleAB = $cumVOlSavCollMale + $cumVOlSavInterestMale; $cumVOlSavFemaleAB = $cumVOlSavCollFemale + $cumVOlSavInterestFemale; $cumOthSavMaleAB = $cumOthSavCollMale + $cumOthSavInterestMale; $cumOthSavFemaleAB = $cumOthSavCollFemale + $cumOthSavInterestFemale; $totalMaleSavCollection = $cumGenSavMaleAB + $cumVOlSavMaleAB + $cumOthSavMaleAB; $totalFemaleSavCollection = $cumGenSavFemaleAB + $cumVOlSavFemaleAB + $cumOthSavFemaleAB; @endphp @php $totalMaleWithdraw = $cumGenSavWithdrawMale + $cumVOlSavWithdrawMale + $cumOthSavWithdrawMale; $totalFemaleWithdraw = $cumGenSavWithdrawFemale + $cumVOlSavWithdrawFemale + $cumOthSavWithdrawFemale; @endphp @php $totalSavBalMale = $cumGenSavBalMale + $cumVOlSavBalMale + $cumOthSavBalMale; $totalSavBalFemale = $cumGenSavBalFemale + $cumVOlSavBalFemale + $cumOthSavBalFemale; @endphp
Savings Fund General Savings Voluntary Savings Other Savings Total Savings
M F Total M F Total M F Total M F Total
Note-3 (PKSF)
Cumulative Savings Collection (A) {{num($cumGenSavCollMale,$filRoundUup)}} {{num($cumGenSavCollFemale,$filRoundUup)}} {{num($cumGenSavCollMale + $cumGenSavCollFemale,$filRoundUup)}} {{num($cumVOlSavCollMale,$filRoundUup)}} {{num($cumVOlSavCollFemale,$filRoundUup)}} {{num($cumVOlSavCollMale + $cumVOlSavCollFemale,$filRoundUup)}} {{num($cumOthSavCollMale,$filRoundUup)}} {{num($cumOthSavCollFemale,$filRoundUup)}} {{num($cumOthSavCollMale + $cumOthSavCollFemale,$filRoundUup)}} {{num($totalMaleSavCollection,$filRoundUup)}} {{num($totalFemaleSavCollection,$filRoundUup)}} {{num($totalMaleSavCollection + $totalFemaleSavCollection,$filRoundUup)}}
Cumulative Interest Provission (B) {{num($cumGenSavInterestMale,$filRoundUup)}} {{num($cumGenSavInterestFemale,$filRoundUup)}} {{num($cumGenSavInterestMale + $cumGenSavInterestFemale,$filRoundUup)}} {{num($cumVOlSavInterestMale,$filRoundUup)}} {{num($cumVOlSavInterestFemale,$filRoundUup)}} {{num($cumVOlSavInterestMale + $cumVOlSavInterestFemale,$filRoundUup)}} {{num($cumOthSavInterestMale,$filRoundUup)}} {{num($cumOthSavInterestFemale,$filRoundUup)}} {{num($cumOthSavInterestMale + $cumOthSavInterestFemale,$filRoundUup)}}{{num($cumSavInterestMale,$filRoundUup)}} {{num($cumSavInterestFemale,$filRoundUup)}} {{num($cumSavInterestMale + $cumSavInterestFemale,$filRoundUup)}}
Total Savings (C) = (A) + (B) {{num($cumGenSavMaleAB,$filRoundUup)}} {{num($cumGenSavFemaleAB,$filRoundUup)}} {{num($cumGenSavMaleAB + $cumGenSavFemaleAB,$filRoundUup)}} {{num($cumVOlSavMaleAB,$filRoundUup)}} {{num($cumVOlSavFemaleAB,$filRoundUup)}} {{num($cumVOlSavMaleAB + $cumVOlSavFemaleAB,$filRoundUup)}} {{num($cumOthSavMaleAB,$filRoundUup)}} {{num($cumOthSavFemaleAB,$filRoundUup)}} {{num($cumOthSavMaleAB + $cumOthSavFemaleAB,$filRoundUup)}} {{num($totalMaleSavCollection,$filRoundUup)}} {{num($totalFemaleSavCollection,$filRoundUup)}} {{num($totalMaleSavCollection + $totalFemaleSavCollection,$filRoundUup)}}
Cumulative Savings Return/withdrwal (D) {{num($cumGenSavWithdrawMale,$filRoundUup)}} {{num($cumGenSavWithdrawFemale,$filRoundUup)}} {{num($cumGenSavWithdrawMale + $cumGenSavWithdrawFemale,$filRoundUup)}} {{num($cumVOlSavWithdrawMale,$filRoundUup)}} {{num($cumVOlSavWithdrawFemale,$filRoundUup)}} {{num($cumVOlSavWithdrawMale + $cumVOlSavWithdrawFemale,$filRoundUup)}} {{num($cumOthSavWithdrawMale,$filRoundUup)}} {{num($cumOthSavWithdrawFemale,$filRoundUup)}} {{num($cumOthSavWithdrawMale + $cumOthSavWithdrawFemale,$filRoundUup)}} {{num($totalMaleWithdraw,$filRoundUup)}} {{num($totalFemaleWithdraw,$filRoundUup)}} {{num($totalMaleWithdraw + $totalFemaleWithdraw,$filRoundUup)}}
Current Savings Balance (E) = (C) - (D) {{num($cumGenSavBalMale,$filRoundUup)}} {{num($cumGenSavBalFemale,$filRoundUup)}} {{num($cumGenSavBalMale + $cumGenSavBalFemale,$filRoundUup)}} {{num($cumVOlSavBalMale,$filRoundUup)}} {{num($cumVOlSavBalFemale,$filRoundUup)}} {{num($cumVOlSavBalMale + $cumVOlSavBalFemale,$filRoundUup)}} {{num($cumOthSavBalMale,$filRoundUup)}} {{num($cumOthSavBalFemale,$filRoundUup)}} {{num($cumOthSavBalMale + $cumOthSavBalFemale,$filRoundUup)}} {{num($totalSavBalMale,$filRoundUup)}} {{num($totalSavBalFemale,$filRoundUup)}} {{num($totalSavBalMale + $totalSavBalFemale,$filRoundUup)}}
@endif {{-- End Forth Table Note-3 --}} {{-- Fifth Table Note-3 --}} @if (count($nonPksfMaleMemberIds)>0 || count($nonPksfFemaleMemberIds)>0)
@php $totalMaleSavCollectionNonPksf = $cumGenSavCollMaleNonPksf + $cumVOlSavCollMaleNonPksf + $cumOthSavCollMaleNonPksf; $totalFemaleSavCollectionNonPksf = $cumGenSavCollFemaleNonPksf + $cumVOlSavCollFemaleNonPksf + $cumOthSavCollFemaleNonPksf; @endphp @php $cumSavInterestMaleNonPksf = $cumGenSavInterestMaleNonPksf + $cumVOlSavInterestMaleNonPksf + $cumOthSavInterestMaleNonPksf; $cumSavInterestFemaleNonPksf = $cumGenSavInterestFemaleNonPksf + $cumVOlSavInterestFemaleNonPksf + $cumOthSavInterestFemaleNonPksf; @endphp {{-- Interest Will be added later --}} @php $cumGenSavMaleNonPksfAB = $cumGenSavCollMaleNonPksf + $cumGenSavInterestMaleNonPksf; $cumGenSavFemaleNonPksfAB = $cumGenSavCollFemaleNonPksf + $cumGenSavInterestFemaleNonPksf; $cumVOlSavMaleNonPksfAB = $cumVOlSavCollMaleNonPksf + $cumVOlSavInterestMaleNonPksf; $cumVOlSavFemaleNonPksfAB = $cumVOlSavCollFemaleNonPksf + $cumVOlSavInterestFemaleNonPksf; $cumOthSavMaleNonPksfAB = $cumOthSavCollMaleNonPksf + $cumOthSavInterestMaleNonPksf; $cumOthSavFemaleNonPksfAB = $cumOthSavCollFemaleNonPksf + $cumOthSavInterestFemaleNonPksf; $cumSavMaleNonPksfAB = $cumGenSavMaleNonPksfAB + $cumVOlSavMaleNonPksfAB + $cumOthSavMaleNonPksfAB; $cumSavFemaleNonPksfAB = $cumGenSavFemaleNonPksfAB + $cumVOlSavFemaleNonPksfAB + $cumOthSavFemaleNonPksfAB; /* $totalMaleSavCollectionNonPksf = $cumGenSavCollMaleNonPksf + $cumVOlSavCollMaleNonPksf + $cumOthSavCollMaleNonPksf; $totalFemaleSavCollectionNonPksf = $cumGenSavCollFemaleNonPksf + $cumVOlSavCollFemaleNonPksf + $cumOthSavCollFemaleNonPksf;*/ @endphp @php $totalMaleWithdrawNonPksf = $cumGenSavWithdrawMaleNonPksf + $cumVOlSavWithdrawMaleNonPksf + $cumOthSavWithdrawMaleNonPksf; $totalFemaleWithdrawNonPksf = $cumGenSavWithdrawFemaleNonPksf + $cumVOlSavWithdrawFemaleNonPksf + $cumOthSavWithdrawFemaleNonPksf; @endphp @php $totalSavBalMaleNonPksf = $cumGenSavBalMaleNonPksf + $cumVOlSavBalMaleNonPksf + $cumOthSavBalMaleNonPksf; $totalSavBalFemaleNonPksf = $cumGenSavBalFemaleNonPksf + $cumVOlSavBalFemaleNonPksf + $cumOthSavBalFemaleNonPksf; @endphp
Savings Fund General Savings Voluntary Savings Other Savings Total Savings
M F Total M F Total M F Total M F Total
Note-3 (NON-PKSF)
Cumulative Savings Collection (A) {{num($cumGenSavCollMaleNonPksf,$filRoundUup)}} {{num($cumGenSavCollFemaleNonPksf,$filRoundUup)}} {{num($cumGenSavCollMaleNonPksf + $cumGenSavCollFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavCollMaleNonPksf,$filRoundUup)}} {{num($cumVOlSavCollFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavCollMaleNonPksf + $cumVOlSavCollFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavCollMaleNonPksf,$filRoundUup)}} {{num($cumOthSavCollFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavCollMaleNonPksf + $cumOthSavCollFemaleNonPksf,$filRoundUup)}} {{num($totalMaleSavCollectionNonPksf,$filRoundUup)}} {{num($totalFemaleSavCollectionNonPksf,$filRoundUup)}} {{num($totalMaleSavCollectionNonPksf + $totalFemaleSavCollectionNonPksf,$filRoundUup)}}
Cumulative Interest Provission (B) {{num($cumGenSavInterestMaleNonPksf,$filRoundUup)}} {{num($cumGenSavInterestFemaleNonPksf,$filRoundUup)}} {{num($cumGenSavInterestMaleNonPksf + $cumGenSavInterestFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavInterestMaleNonPksf,$filRoundUup)}} {{num($cumVOlSavInterestFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavInterestMaleNonPksf + $cumVOlSavInterestFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavInterestMaleNonPksf,$filRoundUup)}} {{num($cumOthSavInterestFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavInterestMaleNonPksf + $cumOthSavInterestFemaleNonPksf,$filRoundUup)}}{{num($cumSavInterestMaleNonPksf,$filRoundUup)}} {{num($cumSavInterestFemaleNonPksf,$filRoundUup)}} {{num($cumSavInterestMaleNonPksf + $cumSavInterestFemaleNonPksf,$filRoundUup)}}
Total Savings (C) = (A) + (B) {{num($cumGenSavMaleNonPksfAB,$filRoundUup)}} {{num($cumGenSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumGenSavMaleNonPksfAB + $cumGenSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumVOlSavMaleNonPksfAB,$filRoundUup)}} {{num($cumVOlSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumVOlSavMaleNonPksfAB + $cumVOlSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumOthSavMaleNonPksfAB,$filRoundUup)}} {{num($cumOthSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumOthSavMaleNonPksfAB + $cumOthSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumSavMaleNonPksfAB,$filRoundUup)}} {{num($cumSavFemaleNonPksfAB,$filRoundUup)}} {{num($cumSavMaleNonPksfAB + $cumSavFemaleNonPksfAB,$filRoundUup)}}
Cumulative Savings Return/withdrwal (D) {{num($cumGenSavWithdrawMaleNonPksf,$filRoundUup)}} {{num($cumGenSavWithdrawFemaleNonPksf,$filRoundUup)}} {{num($cumGenSavWithdrawMaleNonPksf + $cumGenSavWithdrawFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavWithdrawMaleNonPksf,$filRoundUup)}} {{num($cumVOlSavWithdrawFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavWithdrawMaleNonPksf + $cumVOlSavWithdrawFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavWithdrawMaleNonPksf,$filRoundUup)}} {{num($cumOthSavWithdrawFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavWithdrawMaleNonPksf + $cumOthSavWithdrawFemaleNonPksf,$filRoundUup)}} {{num($totalMaleWithdrawNonPksf,$filRoundUup)}} {{num($totalFemaleWithdrawNonPksf,$filRoundUup)}} {{num($totalMaleWithdrawNonPksf + $totalFemaleWithdrawNonPksf,$filRoundUup)}}
Current Savings Balance (E) = (C) - (D) {{num($cumGenSavBalMaleNonPksf,$filRoundUup)}} {{num($cumGenSavBalFemaleNonPksf,$filRoundUup)}} {{num($cumGenSavBalMaleNonPksf + $cumGenSavBalFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavBalMaleNonPksf,$filRoundUup)}} {{num($cumVOlSavBalFemaleNonPksf,$filRoundUup)}} {{num($cumVOlSavBalMaleNonPksf + $cumVOlSavBalFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavBalMaleNonPksf,$filRoundUup)}} {{num($cumOthSavBalFemaleNonPksf,$filRoundUup)}} {{num($cumOthSavBalMaleNonPksf + $cumOthSavBalFemaleNonPksf,$filRoundUup)}} {{num($totalSavBalMaleNonPksf,$filRoundUup)}} {{num($totalSavBalFemaleNonPksf,$filRoundUup)}} {{num($totalSavBalMaleNonPksf + $totalSavBalFemaleNonPksf,$filRoundUup)}}
@endif {{-- End Fifth Table Note-3 --}} {{-- Note-3 Total Table --}}
@php $tCumGenSavBalMale = $cumGenSavBalMale + $cumGenSavBalMaleNonPksf; $tCumGenSavBalFemale = $cumGenSavBalFemale + $cumGenSavBalFemaleNonPksf; $tCumGenSavBal = $tCumGenSavBalMale + $tCumGenSavBalFemale; $tCumVOlSavBalMale = $cumVOlSavBalMale + $cumVOlSavBalMaleNonPksf; $tCumVOlSavBalFemale = $cumVOlSavBalFemale + $cumVOlSavBalFemaleNonPksf; $tCumVOlSavBal = $tCumVOlSavBalMale + $tCumVOlSavBalFemale; $tCumOthSavBalMale = $cumOthSavBalMale + $cumOthSavBalMaleNonPksf; $tCumOthSavBalFemale = $cumOthSavBalFemale + $cumOthSavBalFemaleNonPksf; $tCumOthSavBal = $tCumOthSavBalMale + $tCumOthSavBalFemale; $tTotalSavBalMale = @$totalSavBalMale + @$totalSavBalMaleNonPksf; $tTotalSavBalFemale = @$totalSavBalFemale + @$totalSavBalFemaleNonPksf; $tTotalSavBal = $tTotalSavBalMale + $tTotalSavBalFemale; @endphp
Total PKSF & NON-PKSF {{num($tCumGenSavBalMale,$filRoundUup)}} {{num($tCumGenSavBalFemale,$filRoundUup)}} {{num($tCumGenSavBal,$filRoundUup)}} {{num($tCumVOlSavBalMale,$filRoundUup)}} {{num($tCumVOlSavBalFemale,$filRoundUup)}} {{num($tCumVOlSavBal,$filRoundUup)}} {{num($tCumOthSavBalMale,$filRoundUup)}} {{num($tCumOthSavBalFemale,$filRoundUup)}} {{num($tCumOthSavBal,$filRoundUup)}} {{num($tTotalSavBalMale,$filRoundUup)}} {{num($tTotalSavBalFemale,$filRoundUup)}} {{num($tTotalSavBal,$filRoundUup)}}
{{-- End Note-3 Total Table --}} {{-- Sixth Table Note-4 --}} {{-- initialize some variables for the total calculation --}} @php $pksfLoanDisbursementMale = 0; $nonPksfLoanDisbursementMale = 0; $pksfLoanDisbursementFemale = 0; $nonPksfLoanDisbursementFemale = 0; $pksfLoanCollectionMale = 0; $nonPksfLoanCollectionMale = 0; $pksfLoanCollectionFemale = 0; $nonPksfLoanCollectionFemale = 0; $pksfOutstandingMale = 0; $nonPksfOutstandingMale = 0; $pksfOutstandingFemale = 0; $nonPksfOutstandingFemale = 0; @endphp @if(count($pksfLoanCategories)>0)
@foreach ($pksfLoanCategories as $key => $loanCategory) @php $loanProductIds = $pksfLoanProducts->where('productCategoryId',$loanCategory->id)->pluck('id')->toArray(); $pksfLoanDisbursementMale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('disbursedAmount'); $pksfLoanDisbursementFemale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('disbursedAmount'); if ($filServiceCharge==1) { $pksfLoanCollectionMale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('recoveryAmount'); $pksfLoanCollectionFemale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('recoveryAmount'); $pksfLoanRepayAmountMale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('totalRepayAmount'); $pksfLoanRepayAmountFemale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('totalRepayAmount'); } else{ $pksfLoanCollectionMale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('principalRecoveryAmount'); $pksfLoanCollectionFemale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('principalRecoveryAmount'); $pksfLoanRepayAmountMale = $pksfLoanDisbursementMale; $pksfLoanRepayAmountFemale = $pksfLoanDisbursementFemale; } $pksfOutstandingMale = $pksfLoanRepayAmountMale - $pksfLoanCollectionMale; $pksfOutstandingFemale = $pksfLoanRepayAmountFemale - $pksfLoanCollectionFemale; @endphp @endforeach @php $loanProductIds = $pksfLoanProducts->pluck('id')->toArray(); $pksfLoanDisbursementMale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('disbursedAmount'); $pksfLoanDisbursementFemale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('disbursedAmount'); if ($filServiceCharge==1) { $pksfLoanCollectionMale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('recoveryAmount'); $pksfLoanCollectionFemale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('recoveryAmount'); $pksfLoanRepayAmountMale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('totalRepayAmount'); $pksfLoanRepayAmountFemale = $pksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('totalRepayAmount'); } else{ $pksfLoanCollectionMale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfMaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('principalRecoveryAmount'); $pksfLoanCollectionFemale = $pksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$pksfFemaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('principalRecoveryAmount'); $pksfLoanRepayAmountMale = $pksfLoanDisbursementMale; $pksfLoanRepayAmountFemale = $pksfLoanDisbursementFemale; } $pksfOutstandingMale = $pksfLoanRepayAmountMale - $pksfLoanCollectionMale; $pksfOutstandingFemale = $pksfLoanRepayAmountFemale - $pksfLoanCollectionFemale; @endphp
Note-4 (PKSF)
Outstanding Account (Outstanding in the Field)
Male Female Total
{{$loanCategory->name}} Cumulative Loan Disbursement {{num($pksfLoanDisbursementMale,$filRoundUup)}} {{num($pksfLoanDisbursementFemale,$filRoundUup)}} {{num($pksfLoanDisbursementMale + $pksfLoanDisbursementFemale,$filRoundUup)}}
Cumulative Loan Collection {{num($pksfLoanCollectionMale,$filRoundUup)}} {{num($pksfLoanCollectionFemale,$filRoundUup)}} {{num($pksfLoanCollectionMale + $pksfLoanCollectionFemale,$filRoundUup)}}
Current Outstanding {{num($pksfOutstandingMale,$filRoundUup)}} {{num($pksfOutstandingFemale,$filRoundUup)}} {{num($pksfOutstandingMale + $pksfOutstandingFemale,$filRoundUup)}}
Total PKSF Cumulative Loan Disbursement {{num($pksfLoanDisbursementMale,$filRoundUup)}} {{num($pksfLoanDisbursementFemale,$filRoundUup)}} {{num($pksfLoanDisbursementMale + $pksfLoanDisbursementFemale,$filRoundUup)}}
Cumulative Loan Collection {{num($pksfLoanCollectionMale,$filRoundUup)}} {{num($pksfLoanCollectionFemale,$filRoundUup)}} {{num($pksfLoanCollectionMale + $pksfLoanCollectionFemale,$filRoundUup)}}
Current Outstanding {{num($pksfOutstandingMale,$filRoundUup)}} {{num($pksfOutstandingFemale,$filRoundUup)}} {{num($pksfOutstandingMale + $pksfOutstandingFemale,$filRoundUup)}}
@endif {{-- End Sixth Table Note-4 --}} {{-- Seventh Table Note-4 --}} @if(count($nonPksfLoanCategories)>0)
@foreach ($nonPksfLoanCategories as $key => $loanCategory) @php $loanProductIds = $nonPksfLoanProducts->where('productCategoryId',$loanCategory->id)->pluck('id')->toArray(); $nonPksfLoanDisbursementMale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('disbursedAmount'); $nonPksfLoanDisbursementFemale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('disbursedAmount'); if ($filServiceCharge==1) { $nonPksfLoanCollectionMale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('recoveryAmount'); $nonPksfLoanCollectionFemale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('recoveryAmount'); $nonPksfLoanReapayAmountMale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('totalRepayAmount'); $nonPksfLoanReapayAmountFemale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('totalRepayAmount'); } else{ $nonPksfLoanCollectionMale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('principalRecoveryAmount'); $nonPksfLoanCollectionFemale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('principalRecoveryAmount'); $nonPksfLoanReapayAmountMale = $nonPksfLoanDisbursementMale; $nonPksfLoanReapayAmountFemale = $nonPksfLoanDisbursementFemale; } $nonPksfOutstandingMale = $nonPksfLoanReapayAmountMale - $nonPksfLoanCollectionMale; $nonPksfOutstandingFemale = $nonPksfLoanReapayAmountFemale - $nonPksfLoanCollectionFemale; @endphp @endforeach @php $loanProductIds = $nonPksfLoanProducts->pluck('id')->toArray(); $nonPksfLoanDisbursementMale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('disbursedAmount'); $nonPksfLoanDisbursementFemale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('loanAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('disbursedAmount'); if ($filServiceCharge==1) { $nonPksfLoanCollectionMale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('recoveryAmount'); $nonPksfLoanCollectionFemale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('amount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('recoveryAmount'); $nonPksfLoanReapayAmountMale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('totalRepayAmount'); $nonPksfLoanReapayAmountFemale = $nonPksfLoanDisbursements->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('totalRepayAmount'); } else{ $nonPksfLoanCollectionMale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfMaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',1)->sum('principalRecoveryAmount'); $nonPksfLoanCollectionFemale = $nonPksfLoanCollections->whereIn('productIdFk',$loanProductIds)->whereIn('memberIdFk',$nonPksfFemaleMemberIds)->sum('principalAmount') + $branchOpeningLoanInfo->whereIn('productIdFk',$loanProductIds)->where('genderTypeId',2)->sum('principalRecoveryAmount'); $nonPksfLoanReapayAmountMale = $nonPksfLoanDisbursementMale; $nonPksfLoanReapayAmountFemale = $nonPksfLoanDisbursementFemale; } $nonPksfOutstandingMale = $nonPksfLoanReapayAmountMale - $nonPksfLoanCollectionMale; $nonPksfOutstandingFemale = $nonPksfLoanReapayAmountFemale - $nonPksfLoanCollectionFemale; @endphp
Note-4 (NON-PKSF)
Outstanding Account (Outstanding in the Field)
Male Female Total
{{$loanCategory->name}} Cumulative Loan Disbursement {{num($nonPksfLoanDisbursementMale,$filRoundUup)}} {{num($nonPksfLoanDisbursementFemale,$filRoundUup)}} {{num($nonPksfLoanDisbursementMale + $nonPksfLoanDisbursementFemale,$filRoundUup)}}
Cumulative Loan Collection {{num($nonPksfLoanCollectionMale,$filRoundUup)}} {{num($nonPksfLoanCollectionFemale,$filRoundUup)}} {{num($nonPksfLoanCollectionMale + $nonPksfLoanCollectionFemale,$filRoundUup)}}
Current Outstanding {{num($nonPksfOutstandingMale,$filRoundUup)}} {{num($nonPksfOutstandingFemale,$filRoundUup)}} {{num($nonPksfOutstandingMale + $nonPksfOutstandingFemale,$filRoundUup)}}
Total NON-PKSF Cumulative Loan Disbursement {{num($nonPksfLoanDisbursementMale,$filRoundUup)}} {{num($nonPksfLoanDisbursementFemale,$filRoundUup)}} {{num($nonPksfLoanDisbursementMale + $nonPksfLoanDisbursementFemale,$filRoundUup)}}
Cumulative Loan Collection {{num($nonPksfLoanCollectionMale,$filRoundUup)}} {{num($nonPksfLoanCollectionFemale,$filRoundUup)}} {{num($nonPksfLoanCollectionMale + $nonPksfLoanCollectionFemale,$filRoundUup)}}
Current Outstanding {{num($nonPksfOutstandingMale,$filRoundUup)}} {{num($nonPksfOutstandingFemale,$filRoundUup)}} {{num($nonPksfOutstandingMale + $nonPksfOutstandingFemale,$filRoundUup)}}
@endif {{-- End Seventh Table Note-4 --}} {{-- Note-4 Total Table --}}
@php $loanDisbursementMale = $pksfLoanDisbursementMale + $nonPksfLoanDisbursementMale; $loanDisbursementFemale = $pksfLoanDisbursementFemale + $nonPksfLoanDisbursementFemale; $totalLoanDisbursement = $loanDisbursementMale + $loanDisbursementFemale; $loanCollectionMale = $pksfLoanCollectionMale + $nonPksfLoanCollectionMale; $loanCollectionFemale = $pksfLoanCollectionFemale + $nonPksfLoanCollectionFemale; $totalLoanCollection = $loanCollectionMale + $loanCollectionFemale; $outstandingMale = $pksfOutstandingMale + $nonPksfOutstandingMale; $outstandingFemale = $pksfOutstandingFemale + $nonPksfOutstandingFemale; $totalOutstanding = $outstandingMale + $outstandingFemale; @endphp
Total PKSF & NON-PKSF Cumulative Loan Disbursement {{num($loanDisbursementMale,$filRoundUup)}} {{num($loanDisbursementFemale,$filRoundUup)}} {{num($totalLoanDisbursement,$filRoundUup)}}
Cumulative Loan Collection {{num($loanCollectionMale,$filRoundUup)}} {{num($loanCollectionFemale,$filRoundUup)}} {{num($totalLoanCollection,$filRoundUup)}}
Current Outstanding {{num($outstandingMale,$filRoundUup)}} {{num($outstandingFemale,$filRoundUup)}} {{num($totalOutstanding,$filRoundUup)}}
{{-- End Note-4 Total Table --}} {{-- writeoff Table --}}
@foreach ($pksfLoanCategories as $key => $pksfLoanCategory) @php $cumServiceChargeAmount = $pksfCatgCumServiceCharges->where('categoryId',$pksfLoanCategory->id)->sum('cumSerCharge'); $maleWriteOffNo = $pksfCatgCumServiceCharges->where('categoryId',$pksfLoanCategory->id)->sum('maleWriteOffNo'); $maleWriteOffAmount = $pksfCatgCumServiceCharges->where('categoryId',$pksfLoanCategory->id)->sum('maleWriteOffAmount'); $femaleWriteOffNo = $pksfCatgCumServiceCharges->where('categoryId',$pksfLoanCategory->id)->sum('femaleWriteOffNo'); $femaleWriteOffAmount = $pksfCatgCumServiceCharges->where('categoryId',$pksfLoanCategory->id)->sum('femaleWriteOffAmount'); $bothWtiteOffNo = $maleWriteOffNo + $femaleWriteOffNo; $bothWriteOffAmount = $maleWriteOffAmount + $femaleWriteOffAmount; @endphp @if ($key==0) @endif @endforeach @if (count($pksfLoanCategories)>0) @php $cumServiceChargeAmount = $pksfCatgCumServiceCharges->sum('cumSerCharge'); $maleWriteOffNo = $pksfCatgCumServiceCharges->sum('maleWriteOffNo'); $maleWriteOffAmount = $pksfCatgCumServiceCharges->sum('maleWriteOffAmount'); $femaleWriteOffNo = $pksfCatgCumServiceCharges->sum('femaleWriteOffNo'); $femaleWriteOffAmount = $pksfCatgCumServiceCharges->sum('femaleWriteOffAmount'); $bothWtiteOffNo = $maleWriteOffNo + $femaleWriteOffNo; $bothWriteOffAmount = $maleWriteOffAmount + $femaleWriteOffAmount; @endphp @endif @foreach ($nonPksfLoanCategories as $key => $nonPksfLoanCategory) @php $cumServiceChargeAmount = $nonPksfCatgCumServiceCharges->where('categoryId',$nonPksfLoanCategory->id)->sum('cumSerCharge'); $maleWriteOffNo = $nonPksfCatgCumServiceCharges->where('categoryId',$nonPksfLoanCategory->id)->sum('maleWriteOffNo'); $maleWriteOffAmount = $nonPksfCatgCumServiceCharges->where('categoryId',$nonPksfLoanCategory->id)->sum('maleWriteOffAmount'); $femaleWriteOffNo = $nonPksfCatgCumServiceCharges->where('categoryId',$nonPksfLoanCategory->id)->sum('femaleWriteOffNo'); $femaleWriteOffAmount = $nonPksfCatgCumServiceCharges->where('categoryId',$nonPksfLoanCategory->id)->sum('femaleWriteOffAmount'); $bothWtiteOffNo = $maleWriteOffNo + $femaleWriteOffNo; $bothWriteOffAmount = $maleWriteOffAmount + $femaleWriteOffAmount; @endphp @if ($key==0) @endif @endforeach @if (count($nonPksfLoanCategories)>0) @php $cumServiceChargeAmount = $nonPksfCatgCumServiceCharges->sum('cumSerCharge'); $maleWriteOffNo = $nonPksfCatgCumServiceCharges->sum('maleWriteOffNo'); $maleWriteOffAmount = $nonPksfCatgCumServiceCharges->sum('maleWriteOffAmount'); $femaleWriteOffNo = $nonPksfCatgCumServiceCharges->sum('femaleWriteOffNo'); $femaleWriteOffAmount = $nonPksfCatgCumServiceCharges->sum('femaleWriteOffAmount'); $bothWtiteOffNo = $maleWriteOffNo + $femaleWriteOffNo; $bothWriteOffAmount = $maleWriteOffAmount + $femaleWriteOffAmount; @endphp @endif @php $cumServiceChargeAmount = $pksfCatgCumServiceCharges->sum('cumSerCharge') + $nonPksfCatgCumServiceCharges->sum('cumSerCharge'); $maleWriteOffNo = $pksfCatgCumServiceCharges->sum('maleWriteOffNo') + $nonPksfCatgCumServiceCharges->sum('maleWriteOffNo'); $maleWriteOffAmount = $pksfCatgCumServiceCharges->sum('maleWriteOffAmount') + $nonPksfCatgCumServiceCharges->sum('maleWriteOffAmount'); $femaleWriteOffNo = $pksfCatgCumServiceCharges->sum('femaleWriteOffNo') + $nonPksfCatgCumServiceCharges->sum('femaleWriteOffNo'); $femaleWriteOffAmount = $pksfCatgCumServiceCharges->sum('femaleWriteOffAmount') + $nonPksfCatgCumServiceCharges->sum('femaleWriteOffAmount'); $bothWtiteOffNo = $maleWriteOffNo + $femaleWriteOffNo; $bothWriteOffAmount = $maleWriteOffAmount + $femaleWriteOffAmount; @endphp
Component Cumulative Write Off Information Cumulative Service Charge Collection
Funding Organization Name Loan Product Category Name Male Female Total
No. of Member Amount No. of Member Amount No. of Member Amount
PKSF {{$pksfLoanCategory->name}} {{$maleWriteOffNo}} {{num($maleWriteOffAmount,$filRoundUup)}} {{$femaleWriteOffNo}} {{num($femaleWriteOffAmount,$filRoundUup)}} {{$bothWtiteOffNo}} {{num($bothWriteOffAmount,$filRoundUup)}} {{num($cumServiceChargeAmount,$filRoundUup)}}
Total PKSF {{$maleWriteOffNo}} {{num($maleWriteOffAmount,$filRoundUup)}} {{$femaleWriteOffNo}} {{num($femaleWriteOffAmount,$filRoundUup)}} {{$bothWtiteOffNo}} {{num($bothWriteOffAmount,$filRoundUup)}} {{num($cumServiceChargeAmount,$filRoundUup)}}
NON-PKSF {{$nonPksfLoanCategory->name}} {{$maleWriteOffNo}} {{num($maleWriteOffAmount,$filRoundUup)}} {{$femaleWriteOffNo}} {{num($femaleWriteOffAmount,$filRoundUup)}} {{$bothWtiteOffNo}} {{num($bothWriteOffAmount,$filRoundUup)}} {{num($cumServiceChargeAmount,$filRoundUup)}}
Total NON-PKSF {{$maleWriteOffNo}} {{num($maleWriteOffAmount,$filRoundUup)}} {{$femaleWriteOffNo}} {{num($femaleWriteOffAmount,$filRoundUup)}} {{$bothWtiteOffNo}} {{num($bothWriteOffAmount,$filRoundUup)}} {{num($cumServiceChargeAmount,$filRoundUup)}}
Total PKSF & NON-PKSF {{$maleWriteOffNo}} {{num($maleWriteOffAmount,$filRoundUup)}} {{$femaleWriteOffNo}} {{num($femaleWriteOffAmount,$filRoundUup)}} {{$bothWtiteOffNo}} {{num($bothWriteOffAmount,$filRoundUup)}} {{num($cumServiceChargeAmount,$filRoundUup)}}
{{-- End writeoff Table --}}
{{-- printDiv DIV --}}