@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
Present
{{ $presentToday }} ({{ $attendanceRate }}%)
Absent
{{ $absentToday }} ({{ $absenceRate }}%)
On Leave
{{ $onLeaveToday }} ({{ $leaveRate }}%)
{{ $attendanceRate }}%
Overall Attendance Rate
| Department |
Employees |
Percentage |
Distribution |
@forelse($departmentDist as $dept => $count)
@php
$percentage = $totalEmployees > 0 ? round(($count / $totalEmployees) * 100, 1) : 0;
@endphp
| {{ $dept ?: 'Unassigned' }} |
{{ $count }}
|
{{ $percentage }}% |
|
@empty
| No department data available |
@endforelse
@endsection
@section('scripts')
@endsection