@extends('layouts.dashboard.superadminapp') @section('title', 'Employee Dashboard') @section('styles') @endsection @section('content')

UEPL | Employee Dashboard

day, 00 month 0000
@php $attendanceRate = $totalEmployees ? round(($presentToday / $totalEmployees) * 100, 1) : 0; $absenceRate = $totalEmployees ? round(($absentToday / $totalEmployees) * 100, 1) : 0; $leaveRate = $totalEmployees ? round(($onLeaveToday / $totalEmployees) * 100, 1) : 0; @endphp
{{ $totalEmployees }}
Total Employees
Across all departments
{{ $presentToday }}
Present Today
{{ $attendanceRate }}% attendance rate
{{ $absentToday }}
Absent Today
{{ $absenceRate }}% absence rate
{{ $onLeaveToday }}
On Leave
{{ $leaveRate }}% on approved leave
Today's Attendance Overview
Present {{ $presentToday }} ({{ $attendanceRate }}%)
Absent {{ $absentToday }} ({{ $absenceRate }}%)
On Leave {{ $onLeaveToday }} ({{ $leaveRate }}%)
{{ $attendanceRate }}%

Overall Attendance Rate

Monthly Attendance Trend ({{ date('Y') }})
Department Distribution
Quick Actions
Department Breakdown
@forelse($departmentDist as $dept => $count) @php $percentage = $totalEmployees > 0 ? round(($count / $totalEmployees) * 100, 1) : 0; @endphp @empty @endforelse
Department Employees Percentage Distribution
{{ $dept ?: 'Unassigned' }} {{ $count }} {{ $percentage }}%
No department data available
@endsection @section('scripts') @endsection