@extends('layouts.app') @section('title', 'Attendance Log Details') @section('subtitle', 'View detailed attendance record') @section('content')
Back to Attendance Logs
@if($log->action === 'clock_in') @else @endif

{{ ucfirst(str_replace('_', ' ', $log->action)) }} Record

{{ $log->timestamp->format('M d, Y \a\t H:i:s') }}

@if($log->action === 'clock_in') Clock In @else Clock Out @endif

Employee Information

@if($log->user->image) {{ $log->user->first_name }} @else
{{ $log->user->initials }}
@endif

{{ $log->user->full_name }}

Employee ID: {{ $log->user->employee_id }}

Position: {{ $log->user->position }}

Department: {{ $log->user->department?->name ?? 'N/A' }}

@if($log->user->shift)

Shift: {{ $log->user->shift->name }}

@endif

Attendance Details

{{ $log->timestamp->format('l, F d, Y') }}

{{ $log->timestamp->format('H:i:s') }}

@if($log->action === 'clock_in') Clock In @else Clock Out @endif

{{ $log->location ?? 'N/A' }}

@if($log->notes)

{{ $log->notes }}

@endif

Quick Info

Record ID #{{ $log->id }}
Created {{ $log->created_at->diffForHumans() }}
Updated {{ $log->updated_at->diffForHumans() }}

Employee Status

Status @if($log->user->status === 'active') Active @elseif($log->user->status === 'inactive') Inactive @else Suspended @endif
Hire Date {{ $log->user->hire_date ? $log->user->hire_date->format('M d, Y') : 'N/A' }}
Last Login {{ $log->user->last_login_at ? $log->user->last_login_at->diffForHumans() : 'N/A' }}
@endsection