@extends('layouts.app') @section('title', 'Analytics Dashboard') @section('no-page-header') @section('content')
Analytics Dashboard
{{ $analytics['overview']['total_employees'] }}

Total Employees

{{ $analytics['overview']['active_clients'] }}

Active Clients

{{ $analytics['overview']['total_attendances'] }}

Total Attendances

{{ $analytics['overview']['total_violations'] }}

Total Violations

Attendance Trends
Transit Status Distribution
Violation Patterns
Department Performance
Top Performers
@forelse($analytics['attendance']['analytics']['top_performers'] ?? [] as $performer) @empty @endforelse
Employee Department Attendance Rate Transit Completion
{{ $performer['employee']['full_name'] }} {{ $performer['employee']['departments']->pluck('name')->join(', ') ?: 'N/A' }} {{ $performer['attendance_rate'] }}% {{ $performer['completion_rate'] }}%
No data available
Needs Attention
@forelse($analytics['attendance']['analytics']['needs_attention'] ?? [] as $employee) @empty @endforelse
Employee Issues Attendance Rate Actions
{{ $employee['employee']['full_name'] }} {{ $employee['attendance_rate'] }}% {{ $employee['attendance_rate'] }}%
No employees need attention
@endsection @section('scripts') @endsection