@extends('layouts.app') @section('title', 'الحضور والانصراف - DOTS HR Pro') @push('styles') @endpush @section('content') {{-- Stats --}}
{{ $stats['present'] ?? 0 }}
حاضر
{{ $stats['absent'] ?? 0 }}
غائب
{{ $stats['late'] ?? 0 }}
متأخر
{{ $stats['on_leave'] ?? 0 }}
إجازة
{{-- Quick Check-in / Check-out --}}

تسجيل سريع

@csrf
@csrf
{{-- Geolocation Check-in --}}

تسجيل الحضور الجغرافي

تسجيل الحضور باستخدام الموقع الجغرافي (GPS) — يتم إرسال إحداثيات الموقع مع بيانات التسجيل

{{-- Manual Entry (collapsible) --}}
إدخال يدوي (تاريخ سابق)
@csrf
{{-- Filter bar --}}
{{-- Today's Records --}}

سجل الحضور اليوم

@foreach($attendances as $record) @endforeach {{-- Absent employees (no attendance record today) --}} @foreach($absentEmployees as $emp) @endforeach @if($attendances->isEmpty() && $absentEmployees->isEmpty()) @endif
الموظف القسم وقت الحضور وقت الانصراف ساعات العمل الحالة
@if($record->employee) {{ $record->employee->full_name ?? $record->employee->first_name . ' ' . $record->employee->last_name }} @else موظف #{{ $record->employee_id }} @endif {{ $record->employee->department->name ?? '—' }} {{ $record->check_in ?? '—' }} {{ $record->check_out ?? '—' }} {{ $record->worked_hours ? number_format($record->worked_hours, 1) . ' ساعة' : '—' }} @switch($record->status) @case('present') حاضر @break @case('late') متأخر @break @case('absent') غائب @break @case('on_leave') إجازة @break @default {{ $record->status }} @endswitch
{{ $emp->full_name ?? $emp->first_name . ' ' . $emp->last_name }} {{ $emp->department->name ?? '—' }} — — — غائب
لا يوجد سجلات حضور لهذا اليوم
@endsection @push('scripts') @endpush