@extends('layouts.app') @section('title', 'Reports & Analytics') @section('content')

HR Reports & Business Analytics

Export workforce records, attendance statistics, and leave utilization in CSV format

Export Employees CSV Export Attendance CSV
Active Staff Headcount

{{ $totalEmployees }}

Across {{ $departments->count() }} departments
Monthly Turnout Log

{{ $monthPresent }}

Successful check-ins
Late Flags This Month

{{ $monthLate }}

Grace period exceeded
Approved Leaves (Days)

{{ $approvedLeavesThisMonth }}

Current billing month
Department Workforce Summary
@foreach($departments as $dept) @php $pct = $totalEmployees > 0 ? round(($dept->employees_count / $totalEmployees) * 100, 1) : 0; @endphp @endforeach
Department Code Total Staff Share of Total Status
{{ $dept->name }} {{ $dept->code }} {{ $dept->employees_count }} Members
{{ $pct }}%
Operational
@endsection