@php $pciVEdit = canField('pc-forms', 'project_brief_descriptions', 'edit'); $pciVDisplayMillion = fn (mixed $raw): string => app(\App\Services\PC\PcFormService::class)->formatPcIiiMillionForFormDisplay($raw, $pciVEdit); $pciVDisplayQty = fn (mixed $raw): string => app(\App\Services\PC\PcFormService::class)->formatPcIiiQtyForFormDisplay($raw, $pciVEdit); $pciVSrc = $pcForm ?? null; $pciVFill = $pciCrudDraftFill ?? []; $pciVRof = old('pc_v_recurring_operational_framework'); if (! is_array($pciVRof)) { $pciVRof = $pciVSrc?->pc_v_recurring_operational_framework ?? ($pciVFill['pc_v_recurring_operational_framework'] ?? []); if (! is_array($pciVRof)) { $pciVRof = []; } } $pciVRofExpenditures = is_array($pciVRof['recurring_expenditures'] ?? null) ? $pciVRof['recurring_expenditures'] : []; $pciVRofManpower = is_array($pciVRof['operational_manpower'] ?? null) ? $pciVRof['operational_manpower'] : []; $pciVRofExpenditureRows = [ 'establishment_salaries' => 'Establishment/Salaries', 'commodities_operations' => 'Commodities/Operations', 'repair_maintenance' => 'Repair & Maintenance', ]; $pciVRofManpowerRows = [ 'executive_officers' => 'Executive / Officers (BPS 17 & Above)', 'technical_auxiliary' => 'Technical / Auxiliary Staff', 'support_staff' => 'Support Staff (BPS 1-16)', ]; $pciVRofWizardStep = (int) ($pciVRofWizardStep ?? 4); $pciVRofStepTitle = $pciVRofStepTitle ?? ($pciVRofWizardStep . '. Recurring Operational Costs & Manpower Deployment Framework'); @endphp
{{-- Subsection 3: Planned vs Actual Recurring Operational Expenditures --}}
@foreach($pciVRofExpenditureRows as $expKey => $expLabel) @php $expSaved = is_array($pciVRofExpenditures[$expKey] ?? null) ? $pciVRofExpenditures[$expKey] : []; @endphp @endforeach
Recurring Operational Components Planned Target (As per PC-I) Actual Cost (Under Report Year) Variance/Deviations Remarks
{{ $expLabel }}
{{-- Subsection 4: Planned vs Actual Operational Manpower Employed --}}
@foreach($pciVRofManpowerRows as $mpKey => $mpLabel) @php $mpSaved = is_array($pciVRofManpower[$mpKey] ?? null) ? $pciVRofManpower[$mpKey] : []; @endphp @endforeach
Staff Cadre Classification (Category-wise) Proposed Strength (PC-I) Actually Employed Structure Functional Status / Variance Reason
{{ $mpLabel }}