@if($migration) @endif @foreach($olrsProducts as $olrsProduct) @endforeach @if($migration) @foreach($olrsProducts as $olrsProduct) @endforeach @endif @php $sl = 1; foreach($olrsProducts as $olrsProduct){ ${$olrsProduct->olrs_column_name} = 0; ${'mig_'.$olrsProduct->olrs_column_name} = 0; } $total_interestPaid = 0; $mig_total_interestPaid = 0; @endphp @foreach($fundInterests as $sc_rate => $fundInterest) @php $totalPaidRateWise = 0; $mig_totalPaidRateWise = 0; @endphp @foreach($olrsProducts as $olrsProduct) @php $interestPaid = @$fundInterests[$sc_rate][$olrsProduct->olrs_column_name]; $totalPaidRateWise += $interestPaid; ${$olrsProduct->olrs_column_name} += $interestPaid; $total_interestPaid += $interestPaid; @endphp @endforeach @if($migration) @php $mig_total_interestPaid += @$migFundInterests[$sc_rate]->loan_total; @endphp @foreach($olrsProducts as $olrsProduct) @php ${'mig_'.$olrsProduct->olrs_column_name} += @$migFundInterests[$sc_rate]->{strtolower($olrsProduct->olrs_column_name)}; $mig_totalPaidRateWise += @$migFundInterests[$sc_rate]->{strtolower($olrsProduct->olrs_column_name)}; @endphp @endforeach @endif @endforeach @foreach($olrsProducts as $olrsProduct) @endforeach @if($migration) @foreach($olrsProducts as $olrsProduct) @endforeach @endif
Amount of service charge paid on loan in this financial year
SL Rate of service charge Process Data Migrated Data
{{ $olrsProduct->name}}Total{{ $olrsProduct->name}}Total
{{ $sl++ }} {{ $sc_rate }} {{ Form::hidden('sc_rate[]', $sc_rate) }} {{ number_format($interestPaid,$round) }} {{ Form::hidden($olrsProduct->olrs_column_name.'[]', round($interestPaid, $round)) }}{{ number_format($totalPaidRateWise, $round)}} {{ Form::hidden('loan_total[]', round($totalPaidRateWise, $round)) }}{{number_format(@$migFundInterests[$sc_rate]->{strtolower($olrsProduct->olrs_column_name)})}}{{number_format(@$migFundInterests[$sc_rate]->loan_total)}}
Grand Total{{ number_format(${$olrsProduct->olrs_column_name}, $round)}}{{ number_format($total_interestPaid, $round)}}{{ number_format(${'mig_'.$olrsProduct->olrs_column_name}, $round)}}{{ number_format($mig_total_interestPaid, $round)}}