@extends('layouts.app') {{-- or layouts.admin --}} @section('title', $center->name . ' | Center Overview') @section('content')

🏫 {{ $center->name }} Center Overview

Detailed overview of trainers, trainees, lead trainers, coordinators, and operations for this center.

Back to Centers
@php $summaryStats = [ ['label' => 'Senior Trainers', 'value' => $trainersCount ?? 0, 'icon' => 'bi bi-person-badge-fill', 'color' => 'primary', 'sub' => 'Across all classrooms'], ['label' => 'Assistant Trainers', 'value' => $assistantTrainersCount ?? 0, 'icon' => 'bi bi-person-plus-fill', 'color' => 'info', 'sub' => 'Supporting senior trainers'], ['label' => 'Trainees', 'value' => $traineesCount ?? 0, 'icon' => 'bi bi-people-fill', 'color' => 'success', 'sub' => 'Active learners'], ['label' => 'Lead Trainers', 'value' => $center->leadTrainers->count(), 'icon' => 'bi bi-person-lines-fill', 'color' => 'warning', 'sub' => 'Mentors overseeing sessions'], ['label' => 'Coordinators', 'value' => $coordinatorsCount ?? 0, 'icon' => 'bi bi-person-gear', 'color' => 'danger', 'sub' => 'Managing operations'], ['label' => 'Deputy Lead Trainers', 'value' => $deputiesCount ?? 0, 'icon' => 'bi bi-person-badge', 'color' => 'info', 'sub' => 'Supporting lead trainers'], ['label' => 'Master Trainers', 'value' => $center->masterTrainers->count(), 'icon' => 'bi bi-person-check-fill', 'color' => 'success', 'sub' => 'Senior trainers for the center'], ['label' => 'Head Teachers', 'value' => $headTeachersCount ?? 0, 'icon' => 'bi bi-mortarboard-fill', 'color' => 'secondary', 'sub' => 'Overseeing classes'], ['label' => 'Teachers on Duty', 'value' => $teachersOnDutyCount ?? 0, 'icon' => 'bi bi-person-badge', 'color' => 'info', 'sub' => 'Daily supervising teachers'], ['label' => 'ICT Agents', 'value' => $ictAgentsCount ?? 0, 'icon' => 'bi bi-laptop-fill', 'color' => 'dark', 'sub' => 'Tech support'], ['label' => 'Recce Agents', 'value' => $recceAgentsCount ?? 0, 'icon' => 'bi bi-binoculars-fill', 'color' => 'warning', 'sub' => 'Recon operations'], ['label' => 'Cleaners', 'value' => $cleanersCount ?? 0, 'icon' => 'bi bi-broom-fill', 'color' => 'secondary', 'sub' => 'Maintaining cleanliness'], ['label' => 'Child Minders', 'value' => $childMindersCount ?? 0, 'icon' => 'bi bi-heart-fill', 'color' => 'danger', 'sub' => 'Caring for children'], ]; @endphp @foreach ($summaryStats as $stat)
{{ $stat['label'] }}

{{ $stat['value'] }}

{{ $stat['sub'] }}
@endforeach

@if ($center->trainers->count() > 0)
@foreach ($center->trainers as $index => $trainer) @endforeach
# Name Specialization Phone Email
{{ $index + 1 }} {{ $trainer->name }} {{ $trainer->specialization ?? '—' }} {{ $trainer->phone ?? '—' }} {{ $trainer->email ?? '—' }}
@else

No trainers assigned yet.

@endif

@if ($center->leadTrainers->count() > 0)
@foreach ($center->leadTrainers as $index => $lead) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $lead->name }} {{ $lead->phone ?? '—' }} {{ $lead->email ?? '—' }}
@else

No lead trainers assigned yet.

@endif

@if ($center->trainees->count() > 0)
@foreach ($center->trainees as $index => $trainee) @endforeach
# Name Training Type Phone Email Ward
{{ $index + 1 }} {{ $trainee->name }} {{ $trainee->training_type ?? '—' }} {{ $trainee->phone ?? '—' }} {{ $trainee->email ?? '—' }} {{ $trainee->ward ?? '—' }}
@else

No trainees registered yet.

@endif

@if (!empty($center->assistantTrainers) && $center->assistantTrainers->count() > 0)
@foreach ($center->assistantTrainers as $index => $assistant) @endforeach
# Name Senior Trainer Phone Email
{{ $index + 1 }} {{ $assistant->name }} {{ $assistant->seniorTrainer->name ?? '—' }} {{ $assistant->phone ?? '—' }} {{ $assistant->email ?? '—' }}
@else

No Assistant Trainers assigned yet.

@endif

@if ($deputiesCount > 0)
@foreach ($center->deputies as $index => $deputy) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $deputy->name }} {{ $deputy->phone ?? '—' }} {{ $deputy->email ?? '—' }}
@else

No Deputy Lead Trainers assigned yet.

@endif

@if ($center->masterTrainers->count() > 0)
@foreach ($center->masterTrainers as $index => $master) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $master->name }} {{ $master->phone ?? '—' }} {{ $master->email ?? '—' }}
@else

No Master Trainers assigned yet.

@endif

@if (!empty($center->headTeachers) && $center->headTeachers->count() > 0)
@foreach ($center->headTeachers as $index => $head) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $head->name }} {{ $head->phone ?? '—' }} {{ $head->email ?? '—' }}
@else

No head teachers assigned yet.

@endif

@if (!empty($center->teachersOnDuty) && $center->teachersOnDuty->count() > 0)
@foreach ($center->teachersOnDuty as $index => $teacher) @endforeach
# Name Phone Email Duty Date
{{ $index + 1 }} {{ $teacher->name }} {{ $teacher->phone ?? '—' }} {{ $teacher->email ?? '—' }} {{ $teacher->duty_date ?? '—' }}
@else

No teachers on duty assigned yet.

@endif

@if (!empty($center->ictAgents) && $center->ictAgents->count() > 0)
@foreach ($center->ictAgents as $index => $agent) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $agent->name }} {{ $agent->phone ?? '—' }} {{ $agent->email ?? '—' }}
@else

No ICT agents assigned yet.

@endif

@if (!empty($center->recceAgents) && $center->recceAgents->count() > 0)
@foreach ($center->recceAgents as $index => $recce) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $recce->name }} {{ $recce->phone ?? '—' }} {{ $recce->email ?? '—' }}
@else

No recce agents assigned yet.

@endif

@if (!empty($center->cleaners) && $center->cleaners->count() > 0)
@foreach ($center->cleaners as $index => $cleaner) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $cleaner->name }} {{ $cleaner->phone ?? '—' }} {{ $cleaner->email ?? '—' }}
@else

No cleaners assigned yet.

@endif

@if (!empty($center->childMinders) && $center->childMinders->count() > 0)
@foreach ($center->childMinders as $index => $minder) @endforeach
# Name Phone Email
{{ $index + 1 }} {{ $minder->name }} {{ $minder->phone ?? '—' }} {{ $minder->email ?? '—' }}
@else

No child minders assigned yet.

@endif

@if ($center->coordinators->count() > 0)
@foreach ($center->coordinators as $index => $coordinator) @endforeach
# Coordinator 1 Phone Email Coordinator 2 Phone Email
{{ $index + 1 }} {{ $coordinator->coordinator1_name ?? '—' }} {{ $coordinator->coordinator1_phone ?? '—' }} {{ $coordinator->coordinator1_email ?? '—' }} {{ $coordinator->coordinator2_name ?? '—' }} {{ $coordinator->coordinator2_phone ?? '—' }} {{ $coordinator->coordinator2_email ?? '—' }}
@else

No coordinators assigned yet.

@endif
@endsection