@extends('layouts.app') @section('title', ($source ?? 'pms') === 'pcfms' ? 'PCFMS PC Pipeline Report' : 'PMS PC Pipeline Report') @push('styles') @endpush @section('contents') @php $reportSource = $source ?? ($report['source'] ?? 'pms'); $isPmsReport = $reportSource === 'pms'; $rows = $report['rows'] ?? []; $totals = $report['totals'] ?? []; $selectedYear = $report['budget_year'] ?? $selectedYear ?? ''; $fmtCount = static fn ($n) => number_format((int) $n); $fmtMoney = static fn ($n) => number_format((float) $n, 1).' M'; $bmsDash = static fn () => '—'; $colCount = 13; @endphp
Back to dashboard

@if ($isPmsReport) PMS PC Pipeline Report @else PCFMS PC Pipeline Report @endif

@if ($isPmsReport) Department and sub-department breakdown of BPMS scheme inventory (New During the Year and Unapproved Carry Forward) and native PMS PC-I / PDWP pipeline metrics. @else Department and sub-department breakdown of imported PCFMS PC-I / PDWP pipeline metrics for the selected budget year. @endif

@if ($isPmsReport) @else @endif @forelse ($rows as $row) ($row['row_type'] ?? '') === 'department', 'dd-pc-pipeline-report__sub-row' => ($row['row_type'] ?? '') === 'sub_department'])> @if ($isPmsReport) @else @endif @empty @endforelse @if ($rows !== []) @if ($isPmsReport) @else @endif @endif
DepartmentNew Sch
During Year
Unapproved
Carry Fwd
Est
Cost
AllocationNew Sch
During Year
Unapproved
Carry Fwd
Est
Cost
AllocationPC-I Clr
PDWP
Def
PDWP
MoM
PDWP
PDWP
Held
Appr
PDWP
MoM
Issued
Advise
{{ $row['label'] ?? '' }}{{ $fmtCount($row['new_schemes'] ?? 0) }} {{ $fmtCount($row['carry_forward'] ?? 0) }} {{ $fmtMoney($row['estimated_cost'] ?? 0) }} {{ $fmtMoney($row['allocation'] ?? 0) }}{{ $bmsDash() }} {{ $bmsDash() }} {{ $bmsDash() }} {{ $bmsDash() }}{{ $fmtCount($row['pc1_created'] ?? 0) }} {{ $fmtCount($row['cleared_by_pdwp'] ?? 0) }} {{ $fmtCount($row['deferred_by_pdwp'] ?? 0) }} {{ $fmtCount($row['minutes_by_pdwp'] ?? 0) }} {{ $fmtCount($row['pdwp_meeting_held'] ?? 0) }} {{ $fmtCount($row['approved_by_pdwp'] ?? 0) }} {{ $fmtCount($row['minutes_issued'] ?? 0) }} {{ $fmtCount($row['advise_issued'] ?? 0) }}
No department data for this budget year.
Total (departments){{ $fmtCount($totals['new_schemes'] ?? 0) }} {{ $fmtCount($totals['carry_forward'] ?? 0) }} {{ $fmtMoney($totals['estimated_cost'] ?? 0) }} {{ $fmtMoney($totals['allocation'] ?? 0) }}{{ $bmsDash() }} {{ $bmsDash() }} {{ $bmsDash() }} {{ $bmsDash() }}{{ $fmtCount($totals['pc1_created'] ?? 0) }} {{ $fmtCount($totals['cleared_by_pdwp'] ?? 0) }} {{ $fmtCount($totals['deferred_by_pdwp'] ?? 0) }} {{ $fmtCount($totals['minutes_by_pdwp'] ?? 0) }} {{ $fmtCount($totals['pdwp_meeting_held'] ?? 0) }} {{ $fmtCount($totals['approved_by_pdwp'] ?? 0) }} {{ $fmtCount($totals['minutes_issued'] ?? 0) }} {{ $fmtCount($totals['advise_issued'] ?? 0) }}
@endsection @push('scripts') @endpush