@extends('layouts.admin') @section('page_title', 'Attendance History') @section('content')
Monitor and manage employee logging activities.
| Employee | Date | Check In | Check Out | Work Duration | Status | Entry Type |
|---|---|---|---|---|---|---|
|
{{ substr($att->user->name, 0, 1) }}{{ substr(strrchr($att->user->name, ' '), 1, 1) ?: '' }}
{{ $att->user->name }}
|
{{ $att->date->format('d M, Y') }} | @if ($att->check_in) {{ $att->check_in->format('h:i A') }} @else — @endif | @if ($att->check_out) {{ $att->check_out->format('h:i A') }} @else — @endif | @if ($att->total_work_minutes) {{ floor($att->total_work_minutes / 60) }}h {{ $att->total_work_minutes % 60 }}m @else — @endif |
@php
$statusColor =
$att->status == 'present'
? '#059669'
: ($att->status == 'absent'
? '#dc2626'
: '#d97706');
@endphp
{{ ucfirst($att->status) }}
@if ($att->is_late)
(Late by {{ $att->late_minutes }}m)
@endif
{{ $att->is_late ? 'Late' : ucfirst($att->status) }}
|
@if ($att->is_manual) MANUAL @else SYSTEM @endif {{ $att->is_manual ? 'Manual' : 'System' }} |
Showing 1-{{ count($attendances) }} entries