Generated on {{ now()->format('d M Y H:i:s') }}
@if($site)Site: {{ $site->name }}
@elseAll Sites
@endif @if($start_date || $end_date)Period: {{ $start_date ? \Carbon\Carbon::parse($start_date)->format('d M Y') : 'Start' }} - {{ $end_date ? \Carbon\Carbon::parse($end_date)->format('d M Y') : 'End' }}
@endif| Employee ID | Staff Name | Site | Scheduled In | Actual Time | Type | Status |
|---|---|---|---|---|---|---|
| {{ $log->user->employee_id }} | {{ $log->user->name }} | {{ $log->site->name }} | {{ $schedule ? $schedule->shift_start : '-' }} | {{ $log->timestamp->format('H:i:s') }} | {{ $log->type === 'clock_in' ? 'Check In' : 'Check Out' }} | {{ $log->status }} |
| Total Presence (Masuk): | {{ $logs->where('type', 'clock_in')->count() }} |
| On Time: | {{ $logs->where('type', 'clock_in')->where('status', 'valid')->count() }} |
| Late: | {{ $logs->where('type', 'clock_in')->where('status', 'late')->count() }} |
| Employee ID | Staff Name | Total Presence (Masuk) | On Time | Late |
|---|---|---|---|---|
| {{ $user->employee_id }} | {{ $user->name }} | {{ $userLogs->count() }} | {{ $userLogs->where('status', 'valid')->count() }} | {{ $userLogs->where('status', 'late')->count() }} |