@extends('layouts/acc_layout') @section('title', '| Creaste Budget') @section('content') {{-- @include('microfin/reports/passBookBalanceViews/PassBookBalanceAjax') --}}

Budget for {{$BudgetName}}

@php // dd($child);companyIdFk $fiscalYearMonths = DB::table('gnr_fiscal_year') ->where('companyId', $companyId[0]) ->orderByRaw('id DESC') ->limit(1) ->pluck('fyStartDate') ->toArray(); $fiscalYearName = DB::table('gnr_fiscal_year') ->where('companyId', $companyId[0]) ->orderByRaw('id DESC') ->limit(1) ->pluck('name') ->toArray(); $savedDate = date("Y-m-d"); // print_r($fiscalYearMonths); $fiscalYearMonthsDays = $fiscalYearMonths[0]; list($year, $month, $day) = explode('-', $fiscalYearMonths[0]); list($year1, $month1, $day1) = explode('-', $fiscalYearMonths[0]); $month = ltrim($month, 0); $month1 = ltrim($month1, 0); @endphp {!! Form::open(array('url' => 'accBudgetSubmit', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'POST')) !!} {{-- @method('POST') @csrf --}}
{{-- Start of Branch Name --}}
{{-- Start of the Submit Button --}} @for ($i=0; $i < 12; $i++) @php // dd($month); switch ($month) { case 1: $monthName = 'January'; ++$month; ++$year; break; case 2: $monthName = 'February'; ++$month; break; case 3: $monthName = 'March'; ++$month; break; case 4: $monthName = 'April'; ++$month; break; case 5: $monthName = 'May'; ++$month; break; case 6: $monthName = 'June'; ++$month; break; case 7: $monthName = 'July'; ++$month; break; case 8: $monthName = 'August'; ++$month; break; case 9: $monthName = 'September'; ++$month; break; case 10: $monthName = 'October'; ++$month; break; case 11: $monthName = 'Novomber'; ++$month; break; case 12: $monthName = 'December'; $month = 1; break; } @endphp @endfor @php $loanTracker = 0; $savingsTracker = 0; $loanNameTracker = 0; $count1 = 0; @endphp @php $count = 0; @endphp @if (sizeof($assetLedgers) > 0) @foreach ($assetLedgers as $ledger) @php ++$count; @endphp @php eachRow($ledger, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @if ($ledger->isGroupHead==1) @php $children1=DB::table('acc_account_ledger')->where('parentId', $ledger->id)->orderBy('ordering', 'asc')->get(); @endphp @foreach ($children1 as $child1) @php ++$count; @endphp @if ($child1->isGroupHead==1) @php $children2=DB::table('acc_account_ledger')->where('parentId', $child1->id)->orderBy('ordering', 'asc')->get(); eachRow($child1, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @foreach ($children2 as $child2) @php ++$count; @endphp @if ($child2->isGroupHead==1) @php $children3=DB::table('acc_account_ledger')->where('parentId', $child2->id)->orderBy('ordering', 'asc')->get(); eachRow($child2, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @foreach ($children3 as $key => $child3) @php ++$count; @endphp @if ($child3->isGroupHead==1) @php $children4=DB::table('acc_account_ledger')->where('parentId', $child3->id)->orderBy('ordering', 'asc')->get(); eachRow($child3, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @foreach ($children4 as $key => $child4) @php ++$count; @endphp @if ($child4->isGroupHead==1) @php $children5=DB::table('acc_account_ledger')->where('parentId', $child4->id)->orderBy('ordering', 'asc')->get(); eachRow($child4, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @foreach ($children5 as $key => $child5) @php ++$count; @endphp @if ($child5->isGroupHead==1) @php $children6=DB::table('acc_account_ledger')->where('parentId', $child5->id)->orderBy('ordering', 'asc')->get(); eachRow($child5, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @foreach ($children6 as $key => $child6) @php ++$count; @endphp @php eachRow($child6, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @endforeach @else @php eachRow($child5, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @endif @endforeach @else @php eachRow($child4, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @endif @endforeach @else @php eachRow($child3, $month1, $year1, $fiscalYearName, $savedDate, $count, $requestedBranchId); @endphp @endif @endforeach @else @php eachRow($child2, $month1, $year1, $fiscalYearName, $savedDate, $count); @endphp @endif @endforeach @else @php eachRow($child1, $month1, $year1, $fiscalYearName, $savedDate, $count); @endphp @endif @endforeach @else @php eachRow($ledger, $month1, $year1, $fiscalYearName, $savedDate); @endphp @endif @endforeach @else @endif
Name
Code
{{$monthName}}, {{ltrim($year, 20)}} @php $date1 = $monthName.','.$year; @endphp
No DATA FOUND !
{!! Form::label('', '', ['class' => 'control-label col-md-12', 'style' => 'color:#708090; padding-top: 25px;']) !!}
{{-- End of the Submit button --}}
{{-- {!! Form::close() !!} --}}
{!! Form::close() !!} {{-- @php dd(sizeof($memberInformations)); @endphp --}}


{{--
--}}
@endsection