@extends('layouts/microfin_layout') @section('title', 'MIS Yearly Plan Details') @section('content') @include('microfin.AopBudget.misYearlyPlan.entry.style') @php $catCount = count($mfnSamityCategories); // $catCount = 1; // for testing only $catCount > 1 ? $colspan = 2 : $colspan = 1; @endphp

Plan Details

{{ $companyInfo->name }}
{{ $companyInfo->address }}
Annual Operation Plan {{ $fiscalYears[$fiscalYearId] }} ({{ ucfirst($budgetTypes[$typeId]) }})
Project Name : {{ $projects[$projectId] }} Branch Name : {{ $branches[$branchId] }}
Project Type : {{ $projectTypes[$projectTypeIdFk] }} Print Date : {{ date("d-m-Y") }}
{!! Form::open(array('url' => '', 'id' => 'budget-form', 'role' => 'form')) !!} @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 {{-- @if($key == 1) @elseif($key == 2) @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}}UdayanUnnoti{{ $item['category'] }} {{ $particularsName['loanee'] }} {{ $item['prevLastFyDueLoanee'] }} {{ $item['lastFyDueLoanee'] }} {{ $loanee[$monthName] == 0 ? '-' : $loanee[$monthName] }} {{ ($loanee['total'] == 0) ? '-' : $loanee['total'] }} {{ ($loanee['total'] == 0) ? '-' : $loanee['total'] }}
{{ $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'] }}
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
{!! Form::close() !!}
@endsection