@extends('layouts.app') @section('title', 'Attendance Details') @section('content')
Back to Attendance

Attendance Details

Employee

{{ $dailyAttendance->employee_name }}

{{ $dailyAttendance->employee_id_number }}

Date

{{ $dailyAttendance->attendance_date->format('F j, Y') }}

Department

{{ $dailyAttendance->department->name ?? 'N/A' }}

Location

{{ $dailyAttendance->biometricDevice->location_name ?? 'N/A' }}

Check-In Time

@if($dailyAttendance->check_in_time) {{ \Carbon\Carbon::parse($dailyAttendance->check_in_time)->format('H:i:s') }} @else Not recorded @endif

{{ ucfirst($dailyAttendance->check_in_method) }}

Check-Out Time

@if($dailyAttendance->check_out_time) {{ \Carbon\Carbon::parse($dailyAttendance->check_out_time)->format('H:i:s') }} @else Not recorded @endif

@if($dailyAttendance->check_out_method)

{{ ucfirst($dailyAttendance->check_out_method) }}

@endif

Total Work Hours

{{ $dailyAttendance->total_work_hours }} hours

@if($dailyAttendance->overtime_minutes > 0)

Overtime: {{ round($dailyAttendance->overtime_minutes / 60, 1) }}h

@endif

Status

{!! $dailyAttendance->getStatusBadge() !!}
@if($dailyAttendance->is_late || $dailyAttendance->is_early_departure || $dailyAttendance->remarks)

Additional Information

@if($dailyAttendance->is_late)
Late by {{ $dailyAttendance->late_minutes }} minutes
@endif @if($dailyAttendance->is_early_departure)
Early departure by {{ $dailyAttendance->early_departure_minutes }} minutes
@endif @if($dailyAttendance->remarks)
Remarks: {{ $dailyAttendance->remarks }}
@endif
@endif @if(auth()->user()->role && (auth()->user()->role->name === 'super_admin' || auth()->user()->role->name === 'admin' || auth()->user()->role->name === 'hse_officer'))

Approval

@if($dailyAttendance->approved_by)
Approved by {{ $dailyAttendance->approver->name ?? 'N/A' }} on {{ $dailyAttendance->approved_at->format('M j, Y H:i') }}
@else
@csrf
@endif
@endif
@endsection