@php $user = auth()->user(); $department = $dashboard['department']; $kpis = $dashboard['kpis']; $alerts = $dashboard['alerts']; $completedTrend = $dashboard['completedTrend']; $scoreTrend = $dashboard['scoreTrend']; $resumableSessions = $dashboard['resumableSessions']; $recentEvaluations = $dashboard['recentEvaluations']; $requiresDepartmentSelection = $dashboard['requiresDepartmentSelection']; $maxCompletedTrend = max(1, collect($completedTrend)->max('value')); $maxScoreTrend = max(1, collect($scoreTrend)->max('score')); $showsDepartmentColumn = ! $user->hasRole('admin') && ! $user->hasRole('candidate'); $recentColspan = $showsDepartmentColumn ? 8 : 7; @endphp

FireFit Dashboard

{{ $user->hasRole('candidate') ? 'Track your latest results and performance trend.' : 'Monitor team performance, active sessions, and operational readiness at a glance.' }}

@if ($user->hasRole('proctor'))
Active Department: {{ $department?->name ?? 'Not selected' }}
@endif
@if ($user->hasAnyRole(['super_admin', 'admin', 'proctor'])) Session Reports @endif @if ($user->hasAnyRole(['super_admin', 'admin'])) Management Billing @endif @if ($user->hasRole('candidate')) My Reports @endif
@if ($requiresDepartmentSelection)

Select an active department from the header before viewing proctor dashboards, sessions, or reports.

@endif @if (count($alerts) > 0)
@foreach ($alerts as $alert)
{{ $alert['message'] }}
@endforeach
@endif
@foreach ($kpis as $kpi)

{{ $kpi['value'] }}

{{ $kpi['hint'] }}

@endforeach
@foreach ($completedTrend as $point)

{{ $point['label'] }}

{{ $point['value'] }}

@endforeach
@if (count($scoreTrend) === 0)

No completed scoring data yet.

@else
@foreach ($scoreTrend as $point)

{{ $point['label'] }}

{{ number_format($point['score'], 1) }}

@endforeach
@endif
@if ($user->hasAnyRole(['super_admin', 'admin', 'proctor']) && $resumableSessions->isNotEmpty())
@foreach ($resumableSessions as $session) @endforeach
Session Candidate Status Updated Action
#{{ $session->id }} {{ $session->candidate?->full_name ?? 'N/A' }} {{ ucwords(str_replace('_', ' ', $session->status->value)) }} {{ $session->updated_at?->format('m/d/Y h:i A') ?? 'N/A' }} Open Session Console
@endif
@if ($showsDepartmentColumn) @endif @forelse ($recentEvaluations as $evaluation) @if ($showsDepartmentColumn) @endif @empty @endforelse
Evaluation CandidateDepartmentStatus Tier Score Date Action
#{{ $evaluation->id }} {{ $evaluation->candidate?->full_name ?? 'N/A' }}{{ $evaluation->department?->name ?? 'N/A' }}{{ ucwords(str_replace('_', ' ', $evaluation->status->value)) }} {{ $evaluation->scoreSnapshot?->tier ?? 'Pending' }} {{ $evaluation->scoreSnapshot?->total_score ? $evaluation->scoreSnapshot->total_score.'/20' : 'N/A' }} {{ $evaluation->evaluated_at?->format('m/d/Y h:i A') ?? 'N/A' }} View
No evaluations available yet.