@php $tsd = $totalSchemesData ?? []; $n = fn ($k, $d = 0) => $tsd[$k] ?? $d; @endphp
@php $ppt = $pmsPortfolioTotals ?? []; $pmsPortfolioM = fn (float $v): string => number_format($v, 2) . ' M'; @endphp

No scheme selected yet

Click any marker on the map below to load scheme details in this panel.

Scheme name

Tap a map marker to load details

UID
ADP
Progress (Financial)
Progress (Physical)
Estimated cost
Total expenditure
Approved cost
Total release

Portfolio financial snapshot

Totals across every scheme in your scope · million Rs.

Total cost of schemes
{{ $pmsPortfolioM((float) ($ppt['total_cost_schemes'] ?? 0)) }}
Sum of estimated costs
Total allocation
{{ $pmsPortfolioM((float) ($ppt['total_allotment'] ?? 0)) }}
Approved where set, else estimate
Total expenditure
{{ $pmsPortfolioM((float) ($ppt['total_expenditure'] ?? 0)) }}
Prior year + PBA spend
Total release
{{ $pmsPortfolioM((float) ($ppt['total_release'] ?? 0)) }}
Capital + revenue release

Regional Distribution

@foreach(['pc-i' => 'PC-I', 'pc-ii' => 'PC-II', 'pc-iii' => 'PC-III', 'pc-iv' => 'PC-IV', 'pc-v' => 'PC-V'] as $tabId => $label)

{{ $label }} content will be updated later.

@endforeach
@push('styles') @endpush @push('scripts') @php $mapRows = collect($mapsData ?? $projects ?? []); $mapPointsForJs = $mapRows ->map(function ($row) { $a = is_array($row) ? $row : $row->toArray(); $lat = $a['latitude'] ?? $a['lat'] ?? null; $lng = $a['longitude'] ?? $a['lng'] ?? null; if ($lat === null || $lng === null || $lat === '' || $lng === '') { return null; } if (! is_numeric($lat) || ! is_numeric($lng)) { return null; } return array_merge($a, [ 'lat' => (float) $lat, 'lng' => (float) $lng, ]); }) ->filter() ->values(); @endphp @endpush