@extends('layouts.app') @section('content')
View and Manage Attendances.
| Employee | Attendance | Shift | Day Type | Type |
|---|---|---|---|---|
| {{ $attendance->employee->full_name ?? '' }} | @if($attendance->clock_in && $attendance->clock_out) {{ \Carbon\Carbon::parse($attendance->clock_in)->format('H:i') }} - {{ \Carbon\Carbon::parse($attendance->clock_out)->format('H:i') }} @elseif($attendance->clock_in) {{ \Carbon\Carbon::parse($attendance->clock_in)->format('H:i') }} - Present @else Absent @endif | {{ $attendance->shift ?? 'Day Shift' }} | {{ $attendance->day_type ?? 'Normal' }} | @if($attendance->status === 'present') Present @elseif($attendance->status === 'absent') Absent @elseif($attendance->status === 'late') Late @else {{ ucfirst($attendance->status ?? 'Unknown') }} @endif |
| No attendance found. | ||||
| Employee | Clock In | Clock Out | Total Hours | Overtime Hours |
|---|---|---|---|---|
| {{ $attendance->employee->full_name }} | {{ $attendance->clock_in ? \Carbon\Carbon::parse($attendance->clock_in)->format('H:i') : '-' }} | {{ $attendance->clock_out ? \Carbon\Carbon::parse($attendance->clock_out)->format('H:i') : '-' }} | {{ number_format($attendance->total_hours ?? 0, 2) }}h | {{ number_format($attendance->overtime_hours ?? 0, 2) }}h |
| No present employees found. | ||||
| Employee | Expected Shift | Reason | Status |
|---|---|---|---|
| {{ $employee->full_name }} | Day Shift | No show | Absent |
| No absent employees found. | |||
| Employee | Date | Requested Hours | Reason | Status | Actions |
|---|---|---|---|---|---|
| {{ $request->employee->full_name }} | {{ $request->date->format('M d, Y') }} | {{ $request->requested_hours }}h | {{ $request->reason }} | @if($request->status === 'pending') Pending @elseif($request->status === 'approved') Approved @else Rejected @endif | @if($request->status === 'pending') @endif |
| No overtime requests found. | |||||
| Employee | Client/Location | Check In | Check Out | Purpose | Status |
|---|---|---|---|---|---|
| {{ $visit->employee->full_name }} | {{ $visit->location }} | {{ $visit->check_in ? \Carbon\Carbon::parse($visit->check_in)->format('H:i') : '-' }} | {{ $visit->check_out ? \Carbon\Carbon::parse($visit->check_out)->format('H:i') : '-' }} | {{ $visit->purpose }} | @if($visit->status === 'in_progress') In Progress @elseif($visit->status === 'completed') Completed @else {{ ucfirst($visit->status) }} @endif |
| No visits found. | |||||
You can now download an attendance summary report in xlsx (an Excel spreadsheet). Choose the start date and end date, a report will be generated immediately.