@extends('layouts.app') @section('title', 'تقرير الحضور') @section('content')
{{ $records->count() }} إجمالي السجلات
{{ $records->where('status', 'present')->count() }} حاضرون
{{ $records->where('status', 'late')->count() }} متأخرون
{{ $records->where('status', 'absent')->count() }} غائبون
@if($records->count() > 0)
@foreach($records as $index => $record) @endforeach
# الموظف التاريخ وقت الحضور وقت الانصراف الحالة ملاحظات
{{ $index + 1 }} {{ $record->employee_name ?? '—' }} {{ $record->date ? \Carbon\Carbon::parse($record->date)->format('Y/m/d') : '—' }} {{ $record->check_in ?? '—' }} {{ $record->check_out ?? '—' }} @switch($record->status) @case('present') حاضر @break @case('absent') غائب @break @case('late') متأخر @break @case('leave') إجازة @break @default {{ $record->status }} @endswitch {{ $record->notes ?? '—' }}
@else

لا توجد سجلات

لم يتم العثور على سجلات حضور مطابقة لمعايير البحث.

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush