@extends('layouts.app') @section('title', 'Executive Dashboard') @section('content')

Human Resources Dashboard

Real-time attendance metrics, workforce analytics & approvals for {{ $currentOrganization->name ?? 'PeopleFlow Organization' }}

Add Employee Today's Roster
Total Staff

{{ $totalEmployees }}

{{ $activeEmployees }} Active
Present Today

{{ $presentToday }}

{{ $totalEmployees > 0 ? round(($presentToday / $totalEmployees) * 100, 1) : 0 }}% Turnout
Late Arrivals

{{ $lateToday }}

> 15m Grace Period
On Leave

{{ $onLeaveToday }}

{{ $pendingApprovalsCount }} Pending queue
Est. Payroll

৳{{ number_format($monthlyPayrollCost / 1000, 1) }}k

BDT Gross / mo
HR Helpdesk

{{ $openTicketsCount }}

Open Requests
Attendance Trend (Past 7 Days)
On-time turnout vs late check-ins
09:00 AM Standard Shift
Department Headcount
Workforce distribution by business unit
Recent Attendance Activity
Live check-ins for {{ date('d M Y') }}
View Full Log →
@forelse($recentAttendances as $att) @empty @endforelse
Employee Department Check-In Status Late (m)
{{ strtoupper(substr($att->employee->first_name ?? 'E', 0, 1)) }}
{{ $att->employee->full_name ?? 'Unknown' }}
{{ $att->employee->employee_code ?? '' }}
{{ $att->employee->department->name ?? 'General' }} {{ $att->check_in ? $att->check_in->format('h:i A') : '--:--' }} @if($att->status === 'present') Present @elseif($att->status === 'late') Late @elseif($att->status === 'half_day') Half-Day @else Absent @endif @if($att->late_minutes > 0) +{{ $att->late_minutes }}m @else On time @endif
No attendance activity recorded yet today.
Pending Leave Approvals
Requires management or HR review
{{ $pendingApprovals->count() }} Pending
@forelse($pendingApprovals as $leave)
{{ $leave->employee->full_name ?? 'Employee' }} {{ $leave->leaveType->name ?? 'Leave' }}
{{ $leave->total_days }} {{ $leave->total_days > 1 ? 'Days' : 'Day' }}
{{ $leave->start_date->format('M d') }} - {{ $leave->end_date->format('M d, Y') }} • "{{ Str::limit($leave->reason, 45) }}"
@csrf
@csrf
@empty
All leave applications have been reviewed!
@endforelse
@if($pendingApprovals->count() > 0) @endif
@endsection @push('scripts') @endpush