@extends('layouts.app') @section('content')
{{-- Dashboard Header --}}

Welcome, {{ auth()->user()->name }}!

This dashboard gives an overview of your training program data — from classrooms to coordinators.

{{-- Summary Stats --}}
Classrooms

{{ $totalClassrooms ?? 0 }}

Trainers

{{ $totalTrainers ?? 0 }}

Students

{{ $totalStudents ?? 0 }}

Lead Trainers

{{ $totalLeadTrainers ?? 0 }}

Coordinators

{{ $totalCoordinators ?? 0 }}

Venues

{{ $totalVenues ?? 0 }}

{{-- ✅ Centers Monitoring Section --}}
Centers Monitoring Overview
@if ($centers->count() > 0)
@foreach ($centers as $index => $center) @endforeach
# Center Name Location Trainers Trainees Lead Trainers Coordinators Status Action
{{ $index + 1 }} {{ $center->name }} {{ $center->location ?? '—' }} {{ $center->trainers_count ?? 0 }} {{ $center->trainees_count ?? 0 }} {{ $center->lead_trainers_count ?? 0 }} {{ $center->coordinators_count ?? 0 }} @if ($center->status === 'active') Active @else Inactive @endif View
@else

No centers registered yet.

@endif
{{-- Action Cards --}}
@php $cards = [ ['title' => 'Classrooms', 'text' => 'Create and manage classrooms by county, sub-county, and venue.', 'route' => 'classrooms.index'], ['title' => 'Assign Trainers', 'text' => 'Assign trainers to classes with rate, duration, and payment info.', 'route' => 'trainers.index'], ['title' => 'Assign Students', 'text' => 'Register and assign students to classrooms with tracking.', 'route' => 'assignments.index'], ['title' => 'Lead Trainers', 'text' => 'Assign and manage lead trainers per center.', 'route' => 'lead_trainers.index'], ['title' => 'Centre Coordinators', 'text' => 'Manage assigned coordinators for each venue and sub-county.', 'route' => 'centre_coordinators.index'], ['title' => 'Trainees', 'text' => 'View and verify trainee registrations and training progress.', 'route' => 'students.index'], ]; @endphp @foreach($cards as $card)
{{ $card['title'] }}

{{ $card['text'] }}

Go
@endforeach
{{-- Custom Styling --}} @endsection