@extends('layouts.app') @section('title', 'تفاصيل إنهاء الخدمة - DOTS HR Pro') @push('styles') @endpush @section('content') @php $record = $record ?? null; $checklist = $checklist ?? collect(); @endphp @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($record) @php $reasonLabels = ['resignation'=>'استقالة','termination'=>'إنهاء خدمة','end_of_contract'=>'انتهاء عقد','retirement'=>'تقاعد']; @endphp
بيانات الموظف
{{ $record->first_name ?? '' }} {{ $record->last_name ?? '' }}
{{ $record->employee_number ?? '-' }}
{{ $record->hire_date ?? $record->joining_date ?? '-' }}
{{ $reasonLabels[$record->reason] ?? $record->reason }}
{{ $record->last_working_day ?? '-' }}
{{ ($record->status ?? '') === 'completed' ? 'مكتمل' : 'قيد التنفيذ' }}
قائمة المراجعة
@forelse($checklist as $category => $items)
{{ $category }}
@foreach($items as $item)
@if($item->is_completed ?? false) @else @endif {{ $item->title_ar ?? $item->title ?? $item->item ?? '-' }} @if(!($item->is_completed ?? false))
@csrf
@else {{ $item->completed_at ?? '' }} @endif
@endforeach @empty
لا توجد بنود في قائمة المراجعة
@endforelse
@csrf
@if(($record->status ?? '') !== 'completed')
@csrf
@endif
@else

السجل غير موجود

@endif @endsection