@once @push('stylesheets') @endpush @endonce @php $pciIvEdit = canField('pc-forms', 'project_brief_descriptions', 'edit'); $pciIvSrc = $pcForm ?? null; $pciIvFill = $pciCrudDraftFill ?? []; $pciIvDateVal = static function ($val): string { if ($val === '' || $val === null) { return ''; } if (preg_match('/^\d{4}-\d{2}-\d{2}$/', (string) $val)) { return (string) $val; } try { return \Illuminate\Support\Carbon::parse($val)->format('Y-m-d'); } catch (\Throwable $e) { return ''; } }; $pciIvRevenue = old('pc_iv_consolidated_revenue_generation'); if (! is_array($pciIvRevenue)) { $pciIvRevenue = $pciIvSrc?->pc_iv_consolidated_revenue_generation ?? ($pciIvFill['pc_iv_consolidated_revenue_generation'] ?? []); if (! is_array($pciIvRevenue)) { $pciIvRevenue = []; } } $pciIvRevenueMetrics = (string) ($pciIvRevenue['revenue_metrics'] ?? ''); $pciIvRevenueYearRows = is_array($pciIvRevenue['year_wise_rows'] ?? null) ? array_values($pciIvRevenue['year_wise_rows']) : []; if ($pciIvRevenueYearRows === []) { $pciIvRevenueYearRows = [['year' => '', 'as_estimated_in_pci' => '', 'actual' => '']]; } $pciIvDisplayMillion = fn (mixed $raw): string => app(\App\Services\PC\PcFormService::class)->formatPcIiiMillionForFormDisplay($raw, $pciIvEdit); $pciIvRbmMatrix = old('pc_iv_rbm_realized_matrix'); if (! is_array($pciIvRbmMatrix)) { $pciIvRbmMatrix = $pciIvSrc?->pc_iv_rbm_realized_matrix ?? ($pciIvFill['pc_iv_rbm_realized_matrix'] ?? []); if (! is_array($pciIvRbmMatrix)) { $pciIvRbmMatrix = []; } } $pciIvRbmStoredRows = is_array($pciIvRbmMatrix['rows'] ?? null) ? array_values($pciIvRbmMatrix['rows']) : []; $pciIvPdHistory = old('pc_iv_project_directors_history'); if (! is_array($pciIvPdHistory)) { $pciIvPdHistory = $pciIvSrc?->pc_iv_project_directors_history ?? ($pciIvFill['pc_iv_project_directors_history'] ?? []); if (! is_array($pciIvPdHistory)) { $pciIvPdHistory = []; } } $pciIvPdRows = is_array($pciIvPdHistory['rows'] ?? null) ? array_values($pciIvPdHistory['rows']) : []; if ($pciIvPdRows === []) { $pciIvPdRows = [['officer_name_designation' => '', 'from_date' => '', 'to_date' => '']]; } $pciIvRevenueRbmWizardStep = (int) ($pciIvRevenueRbmWizardStep ?? 10); $pciIvRevenueRbmStepTitle = $pciIvRevenueRbmStepTitle ?? '10. Year-wise Income, RBM Indicators & Project Directors'; @endphp
{{-- 17. Year-wise Income from Services/Revenue Generation --}}
@if($pciIvEdit)
@endif
@if($pciIvEdit)@endif @foreach($pciIvRevenueYearRows as $ryIdx => $ryRow) @php $ryRow = is_array($ryRow) ? $ryRow : []; @endphp @if($pciIvEdit) @endif @endforeach
S.No Year As Estimated in the PC-I Actual
{{ $ryIdx + 1 }}
{{-- 18. RBM Indicators --}}
@if($pciIvEdit) @endif
Input Matrix Output Metrics Output Progress Indicator Baseline Indicator Target Standards Outcome Progress Indicator Target Macro Impact Impact Progress 
Select a scheme to load RBM&E matrix rows from approved PC-I indicators.
@if($pciIvEdit)
@endif
{{-- Sub-section 3: Historical PD List --}}
@if($pciIvEdit) @endif @foreach($pciIvPdRows as $pdIdx => $pdRow) @if($pciIvEdit) @endif @endforeach
S.No Name & Designation From To 
{{ $pdIdx + 1 }} @if($pdIdx === 0) @else @endif