@extends('layouts.app') @php use Carbon\Carbon; @endphp @section('title', 'Attendance Details') @section('content')
Total Days
{{ $attendances->count() }}
Present Days
{{ $attendances->where('status.name', 'present')->count() }}
Late Days
{{ $attendances->where('status.name', 'late')->count() }}
Absent Days
{{ $attendances->where('status.name', 'absent')->count() }}
| Date | Employee | Punch In | Punch Out | Total Hours | Behavior | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $attendance->in_date->format('M d, Y') }} |
{{ $attendance->user?->full_name ?? 'Unknown User' }}
{{ $attendance->user?->profile?->employee_id ?? '' }}
|
{{ $attendance->punch_in_time ? \Carbon\Carbon::parse($attendance->punch_in_time)->format('h:i A') : '-' }} | {{ $attendance->punch_out_time ? \Carbon\Carbon::parse($attendance->punch_out_time)->format('h:i A') : '-' }} | {{ $attendance->total_hours ?? '-' }} | @if($attendance->behavior === 'early') Early @elseif($attendance->behavior === 'late') Late @else Regular @endif | {{ $attendance->status->name }} |
@if(auth()->user()->can('edit_attendance'))
@endif
|
| No attendance records found for the selected period. | |||||||