@extends('layouts.admin') @section('title', 'My Attendance') @php $statusClass = ['present' => 'success', 'absent' => 'danger', 'leave' => 'warning', 'half_day' => 'info']; @endphp @section('content') @if (! $employee)
No attendance recorded for this month.
@else| Date | Status | Clock in | Clock out | Remarks |
|---|---|---|---|---|
| {{ optional($item->attendance_date)->format('d M Y (D)') }} | {{ ucfirst(str_replace('_', ' ', (string) $item->status)) }} | {{ $item->check_in ? \Illuminate\Support\Str::of($item->check_in)->substr(0, 5) : '—' }} @if ($item->check_in_outside)Outside@endif | {{ $item->check_out ? \Illuminate\Support\Str::of($item->check_out)->substr(0, 5) : '—' }} @if ($item->check_out_outside)Outside@endif | {{ $item->remarks }} |