@extends('layouts.app') @php $locale = app()->getLocale(); $isRtl = $locale === 'ar'; @endphp @section('title', $isRtl ? 'حضور الموظفين' : 'Employee Attendance') @section('content')
{{ $isRtl ? 'تسجيل حضور وانصراف الموظفين' : 'Track employee clock-in/out' }}
{{ $isRtl ? 'حاضر' : 'Present' }}
{{ $stats['present'] ?? 0 }}
{{ $isRtl ? 'متأخر' : 'Late' }}
{{ $stats['late'] ?? 0 }}
{{ $isRtl ? 'غائب' : 'Absent' }}
{{ $stats['absent'] ?? 0 }}
{{ $isRtl ? 'إجازة' : 'On Leave' }}
{{ $stats['on_leave'] ?? 0 }}
| {{ $isRtl ? 'الموظف' : 'Employee' }} | {{ $isRtl ? 'الحالة' : 'Status' }} | {{ $isRtl ? 'الدخول' : 'Clock In' }} | {{ $isRtl ? 'الخروج' : 'Clock Out' }} | {{ $isRtl ? 'الساعات' : 'Worked' }} | {{ $isRtl ? 'إجراءات' : 'Actions' }} |
|---|---|---|---|---|---|
|
{{ mb_substr($employee->first_name, 0, 1) }}
{{ $employee->full_name }} {{ $employee->department }} • {{ $employee->position }} |
{{ $statusLabels[$status] ?? $status }} | {{ $att?->clock_in ? \Carbon\Carbon::parse($att->clock_in)->format('H:i') : '—' }} | {{ $att?->clock_out ? \Carbon\Carbon::parse($att->clock_out)->format('H:i') : '—' }} | {{ $att?->worked_hours ?? '—' }} | |
| {{ $isRtl ? 'لا يوجد موظفين' : 'No employees' }} | |||||