{!! Form::open(['role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'budgetForm']) !!}
| Transaction Heads | Monthly Budget | Total | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $month }} | @endforeach|||||||||||||
| $ledger->name[$ledger->code] | "; $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 .= " | ||||||||||||
| Receipt | |||||||||||||
| Payment | |||||||||||||
| Difference | @foreach ($months as $key => $month) @php $monthWithoutComa = str_replace(', ', '', $month); @endphp@endforeach | ||||||||||||