@extends('layouts.app') @section('title', 'Attendance Reports') @section('breadcrumbs')
@endsection @section('content'){{ \Carbon\Carbon::createFromDate($year, $month, 1)->format('F Y') }}
| Employee | Department | Present | Absent | Late | Half Day | Leave | OT Hours | Att. % |
|---|---|---|---|---|---|---|---|---|
|
{{ $row['employee']->full_name }}
{{ $row['employee']->employee_code }}
|
{{ $row['employee']->department?->name ?? '—' }} | {{ $row['present'] }} | {{ $row['absent'] }} | {{ $row['late'] }} | {{ $row['half_day'] }} | {{ $row['leave'] }} | {{ $row['overtime'] }} | {{ $row['attendance_pct'] }}% |
No data for this period | ||||||||
| Department | Employees | Avg Attendance % | Total Absent Days | Total OT Hours |
|---|---|---|---|---|
| {{ $row['department']->name }} | {{ $row['total_employees'] }} | {{ $row['avg_attendance'] }}% | {{ $row['total_absent'] }} | {{ $row['total_overtime'] }} |
No department data | ||||
| Employee | Department | Late Days | Total Late Minutes | Worst Day |
|---|---|---|---|---|
|
{{ $row['employee']->full_name }}
{{ $row['employee']->employee_code }}
|
{{ $row['employee']->department?->name ?? '—' }} | {{ $row['late_days'] }} | {{ $row['total_late_minutes'] }}m | @if($row['worst_day']) {{ $row['worst_day']->date->format('d M') }} ({{ $row['worst_day']->late_minutes }}m late) @else — @endif |
No late arrivals this month Everyone was on time! | ||||
| Employee | Department | Total OT Hours | Avg Daily OT |
|---|---|---|---|
|
{{ $row['employee']->full_name }}
{{ $row['employee']->employee_code }}
|
{{ $row['employee']->department?->name ?? '—' }} | {{ $row['total_overtime'] }}h | {{ $row['avg_daily_overtime'] }}h |
No overtime this month | |||