@php $formAction = $formAction ?? route('msc.store'); $formMethod = $formMethod ?? 'POST'; $reportDate = old('report_date', isset($report) ? $report->report_date?->format('Y-m-d') : now()->format('Y-m-d')); $selectedBranch = old('branch_id', $branchId ?? $report->branch_id ?? null); $existingValues = $values ?? []; @endphp
@csrf @if(($formMethod ?? 'POST') !== 'POST') @method($formMethod) @endif
@if($canPickBranch ?? false) @else @endif
Previous column values are pulled from the last submitted report for this branch.
@foreach($sections as $section) @if($section->isFinancial()) @include('admin.chs.msc.partials.financial-section', [ 'section' => $section, 'previousValues' => $previousValues, 'existingValues' => $existingValues, 'readonly' => false, ]) @elseif($section->isStandard()) @include('admin.chs.msc.partials.standard-section', [ 'section' => $section, 'existingValues' => $existingValues, 'readonly' => false, ]) @elseif($section->isNarrative()) @include('admin.chs.msc.partials.narrative-section', [ 'section' => $section, 'existingValues' => $existingValues, 'readonly' => false, ]) @endif @endforeach
Cancel
@include('admin.chs.msc.partials.scripts')