@extends('layouts.dashboard.superadminapp') @section('title', 'Employee Dashboard') @section('styles') @endsection @section('content')
@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
Today's Attendance Overview
View Details
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
View All
@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