{!! Form::open(['role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'budgetForm']) !!}
| Transaction Heads | Actual | FY {{$fiscalYearName}} Projected | Total | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$previousFy->name}} {{$lastFymonthShort}} FY | @foreach ($months as $key => $month){{ $month }} | @endforeach|||||||||||||
| $ledger->name[$ledger->code] | "."".number_format(abs($GLOBALS['actualBudgetValues'][$type][$ledger->id]))." | "; $childParentConfigs = []; foreach ($GLOBALS['months'] as $key => $month) { $monthWithoutComa = str_replace(', ', '', $month); foreach ($childrens as $key => $child) { $parentConfigs = $GLOBALS['budgetConfig']->where('child', $child->child)->where('childNature', $child->childNature); $childParentConfigs[$key] = $parentConfigs; $childrens[$key]->month = $monthWithoutComa; } $style = 'style="width:80px;text-align: right;'; $readonly = 'readonly'; $function = ''; if ($ledger->isGroupHead) { $style .= 'background-color: #cbd5d6;"'; } elseif (in_array($ledger->id, $GLOBALS['childLedgerIds']) && $configAsChild != null && $configAsChild->childNature == $nature) { $style .= 'background-color: #bab5b5;"'; } else { $style .= '"'; $readonly = ''; // $function = "onInput='changeChildren(" . htmlspecialchars(json_encode($childrens, true), ENT_QUOTES, 'UTF-8') . ', this.value, ' . htmlspecialchars(json_encode($month), ENT_QUOTES, 'UTF-8') . ");'"; $function = "onInput='changeChildren(" . htmlspecialchars(json_encode($childrens, true), ENT_QUOTES, 'UTF-8') . ', this, ' . htmlspecialchars(json_encode($monthWithoutComa), ENT_QUOTES, 'UTF-8') . ',' . htmlspecialchars(json_encode($childParentConfigs), ENT_QUOTES, 'UTF-8') . ");'"; } $trString .= ""; } $trString .= " | ||||||||||||
| Opening Balance | {{number_format($openingBalance['openingBalance'],2)}} | |||||||||||||
| Cash | {{number_format($openingBalance['cashOpeningBalance'],2)}} | |||||||||||||
| Bank | {{number_format($openingBalance['bankOpeningBalance'],2)}} | |||||||||||||
| Receipt | @foreach ($months as $month) | @endforeach | ||||||||||||
| Payment | Payment | @foreach ($months as $month)@endforeach | ||||||||||||
| Closing Balance | {{number_format($closingBalance['total'],2)}} | |||||||||||||
| CASH IN HAND | {{number_format($closingBalance['cash'],2)}} | |||||||||||||
| CASH AT BANK | {{number_format($closingBalance['bank'],2)}} | |||||||||||||
| Difference | @foreach ($months as $key => $month) @php $monthWithoutComa = str_replace(', ', '', $month); @endphp | @endforeach | ||||||||||||