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

PROGRESS DASHBOARD

@endsection @section('content') @php $catLetter = 65; $progresses = collect([ [ 'category' => 'Infrastructure Development', 'details' => [ [ 'sub_categories' => 'Boreholes completed', 'status' => 'completed', 'project_targets' => 10, 'year_progress' => 6, 'cumulative_progress' => 8, 'current_year_targets' => 4, 'current_year_progress' => 2, ], [ 'sub_categories' => 'Solar pumps installed', 'status' => 'inprogress', 'project_targets' => 12, 'year_progress' => 7, 'cumulative_progress' => 9, 'current_year_targets' => 5, 'current_year_progress' => 3, ], [ 'sub_categories' => 'Water points rehabilitated', 'status' => 'completed', 'project_targets' => 15, 'year_progress' => 9, 'cumulative_progress' => 12, 'current_year_targets' => 6, 'current_year_progress' => 4, ], ], ], [ 'category' => 'Community Support', 'details' => [ [ 'sub_categories' => 'Accounts opened', 'status' => 'completed', 'project_targets' => 20, 'year_progress' => 11, 'cumulative_progress' => 14, 'current_year_targets' => 9, 'current_year_progress' => 5, ], [ 'sub_categories' => 'Work initiated', 'status' => 'inprogress', 'project_targets' => 18, 'year_progress' => 10, 'cumulative_progress' => 13, 'current_year_targets' => 8, 'current_year_progress' => 4, ], ], ], [ 'category' => 'Monitoring and Reporting', 'details' => [ [ 'sub_categories' => 'Plinth completed', 'status' => 'completed', 'project_targets' => 14, 'year_progress' => 8, 'cumulative_progress' => 10, 'current_year_targets' => 6, 'current_year_progress' => 3, ], [ 'sub_categories' => 'Lintel completed', 'status' => 'completed', 'project_targets' => 16, 'year_progress' => 9, 'cumulative_progress' => 12, 'current_year_targets' => 7, 'current_year_progress' => 4, ], [ 'sub_categories' => 'Roof completed', 'status' => 'inprogress', 'project_targets' => 18, 'year_progress' => 10, 'cumulative_progress' => 13, 'current_year_targets' => 8, 'current_year_progress' => 5, ], ], ], ])->map(function ($progress) { $progress['details'] = collect($progress['details'])->map(function ($detail) { return (object) $detail; }); return (object) $progress; }); @endphp
@forelse($progresses as $progress) @php $letter = chr($catLetter); @endphp @for($i = 0; $i < 8; $i++) @endfor @foreach($progress->details as $detail) @php $yearProgress = $detail->year_progress; $currentYearProgress = $detail->current_year_progress; $cumulativeAsOfJune = $detail->cumulative_progress; $totalCumulative = $cumulativeAsOfJune + $currentYearProgress; @endphp @endforeach @php $catLetter++; @endphp @empty @endforelse
ACTIVITIES: STATUS PROJECT
TARGETS
YEAR (2024-25) CURRENT YEAR (2025-26) CUMULATIVE
2024-25
PROGRESS
CUMULATIVE
PROGRESS
(As on June 2025)
TARGETS PROGRESS PROGRESS
%
PROGRESS PROGRESS
%
{{ $letter }}- {{ $progress->category }}
 
{{ $detail->sub_categories }} {{ $detail->status == 'inprogress' ? 'IN PROGRESS' : strtoupper($detail->status) }} {{ $detail->project_targets }} {{ $yearProgress }} {{ $cumulativeAsOfJune }} {{ $detail->current_year_targets }} {{ $currentYearProgress }} @php $percent = $detail->current_year_targets > 0 ? round(($currentYearProgress / $detail->current_year_targets) * 100) : 0; @endphp {{ $percent }}% {{ $totalCumulative }} @php $cum_percent = $detail->project_targets > 0 ? round(($totalCumulative / $detail->project_targets) * 100) : 0; @endphp {{ $cum_percent }}%
No Data Found
@endsection