@extends('layouts.app') @section('title','Attendance') @section('page-title',auth()->user()->isEmployee() ? 'My Attendance' : 'Attendance') @section('content')
| Date | @if(!auth()->user()->isEmployee())Employee | @endifTime In | Time Out | Hours | Status | Notes |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($rec->date)->format('D, M j') }} | @if(!auth()->user()->isEmployee())
{{ strtoupper(substr($rec->employee->first_name??'?',0,1)) }}
{{ $rec->employee->full_name ?? '—' }}
|
@endif
{{ $rec->time_in ? \Carbon\Carbon::parse($rec->time_in)->format('h:i A') : '—' }} | {{ $rec->time_out ? \Carbon\Carbon::parse($rec->time_out)->format('h:i A') : '—' }} | {{ $rec->hours_worked ? number_format($rec->hours_worked,1).'h' : '—' }} | {{ ucfirst(str_replace('_',' ',$rec->status)) }} | |
| No attendance records for this period | ||||||