@extends('layouts.master') @section('title', $title) @section('content') @php $badge = ['present' => 'success', 'late' => 'warning', 'absent' => 'danger', 'half' => 'warning', 'leave' => 'info', 'unpaid' => 'danger', 'holiday' => 'primary', 'off' => 'secondary', 'before_hire' => 'secondary', 'future' => 'secondary']; $q = request()->query(); $link = fn ($extra) => route('hrm.attendance_report.index', array_merge($q, $extra)); @endphp {{-- the same figures payroll deducts by (App\Services\AttendanceCalculator) --}}
| Staff | Working days | Present | Absent | Leave paid · unpaid | Holidays | Late times · min | Early (min) | Overtime (min) | Hours | Attendance | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $r['staff']->name }} @if ($t['exempt'])Exempt@endif @if ($t['own_days'])own days@endif | {{ $t['working_days'] }} | {{ $t['present_days'] }} | {{ $t['absent_days'] }} | {{ $t['paid_leave_days'] }} · {{ $t['unpaid_leave_days'] }} | {{ $t['holiday_days'] }} | {{ $t['late_count'] }} · {{ $t['late_minutes'] }} | {{ $t['early_minutes'] }} | {{ $t['overtime_minutes'] }} | {{ $t['worked_hours'] }} |
@if ($pct !== null)
{{ $pct }}%
@else — @endif
@if ($t['single_punch']) {{ $t['single_punch'] }} one-punch @endif
|
Days |
| No staff. | |||||||||||
| Staff | Status | In | Break | Out | Late (min) | Early (min) | Overtime (min) | Hours | Note |
|---|---|---|---|---|---|---|---|---|---|
| {{ $r['staff']->name }} | {{ $labels[$x['status']] ?? $x['status'] }} | {{ $x['time_in'] ?? '—' }} | {{ $x['break'] ?? '' }}@if ($x['break_late']) {{ $x['break_late'] }} min late back @endif |
{{ $x['time_out'] ?? '—' }} | {{ $x['late'] ?: '' }} | {{ $x['early'] ?: '' }} | {{ $x['overtime'] ?: '' }} | {{ $x['worked'] ?: '' }} | {{ $x['note'] }} |
| No staff. | |||||||||
| Date | Status | In | Break | Out | Late (min) | Early (min) | Overtime (min) | Hours | Note |
|---|---|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($x['date'])->format('D d M') }} | {{ $labels[$x['status']] ?? $x['status'] }} | {{ $x['time_in'] ?? '—' }} | {{ $x['break'] ?? '' }}@if ($x['break_late']) {{ $x['break_late'] }} min late back @endif |
{{ $x['time_out'] ?? '—' }} | {{ $x['late'] ?: '' }} | {{ $x['early'] ?: '' }} | {{ $x['overtime'] ?: '' }} | {{ $x['worked'] ?: '' }} | {{ $x['note'] }} |