@extends('layouts.admin') @section('title', 'My Attendance') @php $statusClass = ['present' => 'success', 'absent' => 'danger', 'leave' => 'warning', 'half_day' => 'info']; @endphp @section('content') @if (! $employee)
No employee profile linked. Your login is not connected to an active employee record, so no attendance is tracked. Ask an administrator to link your account from HR & Payroll → Employees.
@else
@foreach ([['Present', $summary['present'], 'success'], ['Leave', $summary['leave'], 'warning'], ['Absent', $summary['absent'], 'danger'], ['Hours logged', $summary['hours'], 'primary']] as [$label, $value, $tone])
{{ $value }}
{{ $label }}
@endforeach
My attendance
Clock in and out using the button in the top bar.
@if ($items->isEmpty())

No attendance recorded for this month.

@else
@foreach ($items as $item) @endforeach
Date Status Clock in Clock out Remarks
{{ optional($item->attendance_date)->format('d M Y (D)') }} {{ ucfirst(str_replace('_', ' ', (string) $item->status)) }} {{ $item->check_in ? \Illuminate\Support\Str::of($item->check_in)->substr(0, 5) : '—' }} @if ($item->check_in_outside)Outside@endif {{ $item->check_out ? \Illuminate\Support\Str::of($item->check_out)->substr(0, 5) : '—' }} @if ($item->check_out_outside)Outside@endif {{ $item->remarks }}
@endif
@endif @endsection