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

FINANCIAL PROGRESS

@endsection @section('content') @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