@include('partials.reportHead.index')
@if($requestReportType == 'Incentive') @else @endif @if($requestReportType == 'Balance' || $requestReportType == 'Achievement') @endif @php $monthColspan = ($requestReportType == 'Achievement' || $requestReportType == 'Incentive') ? sizeOf($months)+1 : sizeOf($months); @endphp @if($requestReportType == 'Balance' || $requestReportType == 'Achievement') @elseif($requestReportType == 'Collection') @endif @if($requestReportType == 'Incentive') @endif @foreach($monthsName as $key => $monthName) @endforeach @if($requestReportType == 'Achievement' || $requestReportType == 'Incentive') @endif
Warning: Undefined variable $months in /home/shikkhaplus/public_html/guk_bk/resources/views/microfin/reports/otsAchievementReport/otsAchievementReportView.blade.php on line 58

Warning: foreach() argument must be of type array|object, null given in /home/shikkhaplus/public_html/guk_bk/resources/views/microfin/reports/otsAchievementReport/otsAchievementReportView.blade.php on line 58
@foreach ($empIds as $empId) @php $openingBalanceGrandTotal += (float) ($openingBalances[$empId.'_'.$openingMonth]['openingBalance'] ?? 0); @endphp @if($requestReportType == 'Incentive') @endif @if($requestReportType == 'Balance' || $requestReportType == 'Achievement') @endif @php $achievementTotal = 0; $achievementClosing = 0; $collectionTotal = 0; $incentiveTtoal = 0; @endphp @foreach($months as $key => $month) @php $achievementTotal += (float) $reports[$empId][$month]['achievement']; $achievementClosing = (float) ((($openingBalances[$empId.'_'.$openingMonth]['openingBalance']) ?? 0) + $achievementTotal); $collectionTotal += (float) $reports[$empId][$month]['collection']; $incentiveTtoal += (float) $reports[$empId][$month]['incentive']; @endphp @if($requestReportType == 'Achievement') @php $monthTotal[$month] += (float) ($reports[$empId][$month]['achievement']); @endphp @elseif($requestReportType == 'Balance') @php $monthTotal[$month] += (float) ($reports[$empId][$month]['balance']); @endphp @elseif($requestReportType == 'Collection') @php $monthTotal[$month] += (float) ($reports[$empId][$month]['collection']); @endphp @elseif($requestReportType == 'Incentive') @php $monthTotal[$month] += (float) ($reports[$empId][$month]['incentive']); @endphp @endif @endforeach @if($requestReportType == 'Achievement') @endif @if($requestReportType == 'Achievement') @elseif($requestReportType == 'Balance') @elseif($requestReportType == 'Collection') @elseif($requestReportType == 'Incentive') @endif @endforeach @php $achievementMonthTotal = 0; $collectionMonthTotal = 0; $incentiveMonthTotal = 0; @endphp @if($requestReportType == 'Incentive') @else @endif @if($requestReportType == 'Balance' || $requestReportType == 'Achievement') @endif @foreach($months as $key => $month) @php $achievementMonthTotal += $monthTotal[$month]; $collectionMonthTotal += $monthTotal[$month]; $incentiveMonthTotal += $monthTotal[$month]; @endphp @endforeach @php $achievementGrandTotal = $openingBalanceGrandTotal + $achievementMonthTotal; $collectionGrandTotal = $collectionMonthTotal; $incentiveGrandTotal = $incentiveMonthTotal @endphp @if($requestReportType == 'Achievement') @endif @if($requestReportType == 'Achievement') @elseif($requestReportType == 'Balance') @elseif($requestReportType == 'Collection') @elseif($requestReportType == 'Incentive') @endif
SL.EmployeeEmployeeOpening
{{$openingMonthName}}
Name of MonthsClosing BalanceTotal Collection
Name ID Designation BranchRocket Acc No.{{$monthName}}Total
{{ ++$no }} {{ $reports[$empId]['empName'] }} {{ $reports[$empId]['empId']}} {{ $reports[$empId]['designation'] }} {{ $reports[$empId]['branch'] }}{{ $reports[$empId]['rocketAccNo']}}{{ number_format(($openingBalances[$empId.'_'.$openingMonth]['openingBalance']) ?? 0)}}{{ number_format($reports[$empId][$month]['achievement']) }}{{ number_format($reports[$empId][$month]['balance']) }}{{ number_format($reports[$empId][$month]['collection']) }}{{ number_format($reports[$empId][$month]['incentive']) }}{{ number_format($achievementTotal) }}{{ number_format($achievementClosing) }}{{ number_format($reports[$empId][$endMonth]['balance']) }}{{ number_format($collectionTotal) }}{{ number_format($incentiveTtoal) }}
Grand Total:Grand Total:{{ number_format($openingBalanceGrandTotal) }}{{ number_format($monthTotal[$month]) }}{{ number_format($achievementMonthTotal) }}{{ number_format($achievementGrandTotal) }}{{ number_format($monthTotal[$endMonth]) }}{{ number_format($collectionGrandTotal) }}{{ number_format($incentiveGrandTotal) }}