@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

Edit Plan

{{ $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 @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 @for ($i = 1; $i <= 12; $i++) @endfor @for ($i = 1; $i <= 12; $i++) @endfor @for ($i = 1; $i <= 12; $i++) @endfor
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'] }} $monthNo) readonly @endif onclick='checkelement(this)' id="loanee_{{ $key }}_{{ $monthNo }}" name="loanee_{{ $key }}_{{ $monthNo }}" value="{{ $loanee[$monthName] }}" class="form-control text-center" type="text" {{ $isEdit ? '' : 'readonly' }} /> {{ number_format( $loanee['total'] ) }} {{ number_format( $loanee['opening'] + $loanee['total'] ) }}
{{ $particularsName['collection'] }} {{ $item['prevLastFyDueCollection'] }} {{ $item['lastFyDueCollection'] }} $monthNo) readonly @endif onclick='checkelement(this)' id="collection_{{ $key }}_{{ $monthNo }}" name="collection_{{ $key }}_{{ $monthNo }}" value="{{ $collection[$monthName] }}" class="form-control text-right" type="text" {{ $isEdit ? '' : 'readonly' }} /> {{ number_format( $collection['total'] ) }} {{ number_format( $collection['opening'] + $collection['total'] ) }}
{{ $particularsName['outstanding'] }} {{ $item['prevLastFyDueOutstanding'] }} {{ $item['lastFyDueOutstanding'] }} {{ number_format( $outstanding['total'] ) }} {{ number_format( $outstanding['opening'] + $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'] }} {{ number_format($total_prevLastFyDueLoanee) }} {{ number_format($total_lastFyDueLoanee) }} l L L
{{ $particularsName['collection'] }} {{ number_format($total_prevLastFyDueCollection) }} {{ number_format($total_lastFyDueCollection) }} c C C
{{ $particularsName['outstanding'] }} {{ number_format($total_prevLastFyDueOutstanding) }} {{ number_format($total_lastFyDueOutstanding) }} o O O
{!! Form::submit('Save', ['id' => 'budgetSubmit', 'class' => 'btn btn-primary btn-md', 'style'=>'font-size:12px']); !!}
{!! Form::close() !!}
@endsection