@extends('layouts.app') @section('title', 'عرض بيانات الموظف - '.config('app.name')) @section('breadcrumb') الرئيسية › الموارد البشرية › الموظفون › {{ $employee->name }} @endsection @section('content') @php $hire = $employee->hire_date ?? $employee->hired_at; $st = $employee->status ?? 'active'; $salaryTypeKey = $employee->salary_type ?? 'monthly'; $salaryTypeLabel = match ($salaryTypeKey) { 'weekly' => 'أسبوعي', 'daily' => 'يومي', default => 'شهري', }; $policyKey = $employee->attendance_policy ?? 'none'; $attendancePolicyLabel = match ($policyKey) { 'day_for_day' => 'خصم اليوم بيوم', 'hour_for_hour' => 'الساعة بساعة', default => 'بدون سياسة خصم تلقائية', }; @endphp
{{ $employee->name }} — {{ $employee->code ?: '—' }}
| التاريخ |
الحضور |
الانصراف |
ساعات العمل |
دقائق التأخير |
قيمة الخصم |
الحالة |
|---|---|---|---|---|---|---|
| {{ $att['date'] }} | {{ $att['check_in'] }} | {{ $att['check_out'] }} | {{ $att['work_hours'] }} | {{ $att['minutes_late_display'] }} | {{ $att['deduction_display'] }} | @if($att['status_key'] === 'present') حاضر @elseif($att['status_key'] === 'late') متأخر @elseif($att['status_key'] === 'leave') إجازة مدفوعة @else غائب @endif |