@include('microfin.AopBudget.misYearlyPlan.report.details.header', array( 'company' => $company, 'fiscalyear' => $fiscalyear, 'projectName' => $projectName, 'areaName' => $areaName, 'zoneName' => $zoneName, 'regionName' => $regionName, 'branchName' => $branchName, 'projectTypeName' => $projectTypeName, 'filReportLevel' => $filReportLevel )) @php $catCount = count($mfnSamityCategories); // $catCount = 1; // for testing only $catCount > 1 ? $colspan = 2 : $colspan = 1; @endphp
@foreach($mfnSamityCategories as $sCatId => $sCatVal) @foreach($sCatVal->productCategories as $key => $item) @php $loanee = $item['loanee']; $collection = $item['collection']; $outstanding = $item['outstanding']; $firstProductCat = key($sCatVal->productCategories); // $firstProductCat = array_key_first($sCatVal->productCategories); @endphp @if ($catCount > 1) @if($firstProductCat == $key) @elseif($firstProductCat == $key) @endif @endif @foreach($fyMonths as $monthNo => $monthName) @endforeach {{-- --}} @foreach($fyMonths as $monthNo => $monthName) @endforeach @foreach($fyMonths as $monthNo => $monthName) @endforeach {{-- --}} @endforeach {{-- SUB TOTAL --}} @if ($catCount > 1) @for ($i = 1; $i <= 12; $i++) @endfor @for ($i = 1; $i <= 12; $i++) @endfor @for ($i = 1; $i <= 12; $i++) @endfor @endif {{-- SUB TOTAL END --}} @endforeach {{-- GRAND TOTAL --}} @for ($i = 1; $i <= 12; $i++) @endfor @for ($i = 1; $i <= 12; $i++) @endfor @for ($i = 1; $i <= 12; $i++) @endfor {{-- GRAND TOTAL END --}}
Components {{ $prevLastFy }} {{ $lastFy }} {{ $fiscalyear }} {{ $fiscalyear }}
Jul, {{ $partOfyear[0] }} Aug, {{ $partOfyear[0] }} Sep, {{ $partOfyear[0] }} Oct, {{ $partOfyear[0] }} Nov, {{ $partOfyear[0] }} Dec, {{ $partOfyear[0] }} Jan, {{ $partOfyear[1] }} Feb, {{ $partOfyear[1] }} Mar, {{ $partOfyear[1] }} Apr, {{ $partOfyear[1] }} May, {{ $partOfyear[1] }} Jun, {{ $partOfyear[1] }} Total
{{$samityCategories[$sCatVal->samityCategoryId]->categoryName}}{{$samityCategories[$sCatVal->samityCategoryId]->categoryName}}{{ $item['category'] }} {{ $particularsName['loanee'] }} {{ $item['prevLastFyDueLoanee'] }} {{ $item['lastFyDueLoanee'] }} {{ $loanee[$monthName] == 0 ? '-' : $loanee[$monthName] }} @if (isset($loanee['total'])) {{ ($loanee['total'] == 0) ? '-' : $loanee['total'] }} @else {{"-"}} @endif 0
{{ $particularsName['collection'] }} {{ $item['prevLastFyDueCollection'] }} {{ $item['lastFyDueCollection'] }} {{ ($collection[$monthName] == 0) ? '-' : $collection[$monthName] }} {{ ($collection['total'] == 0) ? '-' : $collection['total'] }} {{ ($collection['total'] == 0) ? '-' : $collection['total'] }}
{{ $particularsName['outstanding'] }} {{ $item['prevLastFyDueOutstanding'] }} {{ $item['lastFyDueOutstanding'] }} {{ ($outstanding[$monthName] == 0) ? '-' : $outstanding[$monthName] }} {{ ($outstanding['total'] == 0) ? '-' : $outstanding['total'] }} {{ ($outstanding['total'] == 0) ? '-' : $outstanding['total'] }} 0
Sub Total {{ $particularsName['loanee'] }} {{ $mfnSamityCategories[$sCatId]->prevLastFyDueLoanee }} {{ $mfnSamityCategories[$sCatId]->lastFyDueLoanee }} l L L
{{ $particularsName['collection'] }} {{ $mfnSamityCategories[$sCatId]->prevLastFyDueCollection }} {{ $mfnSamityCategories[$sCatId]->lastFyDueCollection }} c C C
{{ $particularsName['outstanding'] }} {{ $mfnSamityCategories[$sCatId]->prevLastFyDueOutstanding }} {{ $mfnSamityCategories[$sCatId]->lastFyDueOutstanding }} o O O
Grand Total {{ $particularsName['loanee'] }} {{ $total_prevLastFyDueLoanee }} {{ $total_lastFyDueLoanee }} l L L
{{ $particularsName['collection'] }} {{ $total_prevLastFyDueCollection }} {{ $total_lastFyDueCollection }} c C C
{{ $particularsName['outstanding'] }} {{ $total_prevLastFyDueOutstanding }} {{ $total_lastFyDueOutstanding }} o O O