@extends(request()->routeIs('admin.*') ? 'layouts.admin' : 'layouts.user')
@section('title', 'Employee Analytics')
@section('page_title', 'Analytics: ' . $employee->first_name . ' ' . $employee->last_name)
@section('content')
Performance Analytics
Detailed performance metrics for {{ $employee->first_name }}
{{ $employee->last_name }}
Period: Last 30 Days
{{ $guardStats['total'] }}
Assigned
{{ $patrollerStats['total'] }}
Assigned
{{ $guardAttendanceRate }}%
On-time Rate
{{ $patrollerAttendanceRate }}%
On-time Rate
Avg Shift Dur. (Guard)
{{ $guardAvgDuration }}h
Per scheduled shift
Avg Shift Dur. (Patroller)
{{ $patrollerAvgDuration }}h
Per scheduled shift
Late Check-ins (Guard)
{{ $guardStats['late'] }}
Incidents
Late Check-ins (Patroller)
{{ $patrollerStats['late'] }}
Incidents
Assigned Jobs Distribution
Ticket Issues (Monthly Trend)
@endsection