@extends('theme.default.layouts.app') @section('dashboard-title')

FINANCIAL PROGRESS

@endsection @section('content') @php $financials = collect([ (object)[ 'serial_no' => 1, 'component_name' => 'Community Infrastructure Rehabilitation', 'budget' => 4109.93, 'releases' => 100.00, 'total_expense' => 23.60, 'utilization' => 23.60, 'approvals' => [ (object)[ 'approval_authority' => 'ECNEC / 29-06-2024. Admin App. 15-11-2024', 'usd_million' => 25, 'pkr_million' => 7000, ], (object)[ 'approval_authority' => 'ECNEC / 29-06-2024. Admin App. 07-10-2024', 'usd_million' => 10, 'pkr_million' => 2600, ], (object)[ 'approval_authority' => 'After Re-structuring, For One Health & One Education Facility', 'usd_million' => 1, 'pkr_million' => 280, ], ] ], (object)[ 'serial_no' => 2, 'component_name' => 'Strengthening Hydromet and Climate Services', 'budget' => 2998.60, 'releases' => 449.79, 'total_expense' => 49.00, 'utilization' => 10.89, 'approvals' => [ (object)[ 'approval_authority' => 'ECNEC / 29-06-2024. Admin App. 07-10-2024', 'usd_million' => 40, 'pkr_million' => 14498, ], ] ], (object)[ 'serial_no' => 3, 'component_name' => 'Resilient Housing Reconstruction and Restoration', 'budget' => 17500.00, 'releases' => 6125.00, 'total_expense' => 4205.46, 'utilization' => 68.66, 'approvals' => [ (object)[ 'approval_authority' => 'ECNEC / 29-06-2024. Admin App. 22-10-2024', 'usd_million' => 75, 'pkr_million' => 21000, ], ] ], (object)[ 'serial_no' => 4, 'component_name' => 'Project Mgmt., Technical Assistance, Capacity Building', 'budget' => 500.00, 'releases' => 75.00, 'total_expense' => 16.70, 'utilization' => 22.27, 'approvals' => [ (object)[ 'approval_authority' => 'CDWP / 03-05-2024. Admin App. 02-10-2024', 'usd_million' => 8, 'pkr_million' => 2240, ], ] ], ]); @endphp @php function formatNumberShort($number, $decimals = 1) { if ($number >= 1000000) { // 1 Million return number_format($number / 1000000, $decimals) . ' M'; } elseif ($number >= 1000) { // 1 Thousand return number_format($number / 1000, $decimals) . ' K'; } else { return number_format($number, 0); } } @endphp
{{-- ROW 1: Group headers --}} {{-- ROW 2: Column headers --}} @forelse($financials as $component) {{-- COMPONENT HEADING --}} {{-- Component Approval Rows --}} @foreach($component->approvals as $index => $approval) {{-- USD --}} {{-- PKR --}} {{-- Allocation --}} {{-- Released --}} {{-- Utilization --}} {{-- Utilization % --}} @endforeach @empty @endforelse
PHASE-1 ALLOCATION
Financial Progress
Activities: Approving
Authority/Admin
Approval
USD Million PKR Million Allocation
2025-2026
Released
2025-2026
Utilization
As Per
Release
Utilization %
COMPONENT {{ $component->serial_no }}: {{ strtoupper($component->component_name) }}
{{ $approval->approval_authority }} ${{ formatNumberShort($approval->usd_million,0) }} {{ formatNumberShort($approval->pkr_million,0) }} {{ $index == 0 ? number_format($component->budget,2) : '' }} {{ $index == 0 ? number_format($component->releases,2) : '' }} {{ $index == 0 ? number_format($component->total_expense,2) : '' }} @if($index == 0 && $component->utilization) {{ number_format($component->utilization, 2) }}% @endif
No Financial Data Found
@endsection