@extends('layouts.app') @section('title', $course->title) @section('content') {{-- Course Info Card --}}

معلومات الدورة

عنوان الدورة
{{ $course->title }}
المدرب
{{ $course->trainer ?? '—' }}
النوع
{{ $course->type ?? '—' }}
تاريخ البداية
{{ $course->start_date ? \Carbon\Carbon::parse($course->start_date)->format('Y-m-d') : '—' }}
تاريخ النهاية
{{ $course->end_date ? \Carbon\Carbon::parse($course->end_date)->format('Y-m-d') : '—' }}
الموقع
{{ $course->location ?? '—' }}
الحد الأقصى للمشاركين
{{ $course->max_participants ?? '—' }}
إلزامية
@if($course->is_mandatory) إلزامية @else اختيارية @endif
التكلفة
{{ $course->cost ? number_format($course->cost, 2) . ' ر.س' : 'مجاني' }}
الحالة
@if($course->status === 'active') نشطة @elseif($course->status === 'completed') مكتملة @elseif($course->status === 'cancelled') ملغية @else {{ $course->status }} @endif
{{-- Enroll Employees --}}

تسجيل موظفين

@csrf
{{-- Enrollments Table --}}

المسجلون في الدورة

@if($enrollments->count() > 0)
@foreach($enrollments as $index => $enrollment) {{-- Update Status Modal --}} @endforeach
# الموظف الحالة تاريخ الإكمال الدرجة إجراءات
{{ $index + 1 }} {{ $enrollment->employee_name }} @if($enrollment->status === 'completed') مكتمل @elseif($enrollment->status === 'in_progress') قيد التنفيذ @elseif($enrollment->status === 'enrolled') مسجل @elseif($enrollment->status === 'failed') راسب @elseif($enrollment->status === 'withdrawn') منسحب @else {{ $enrollment->status }} @endif {{ $enrollment->completion_date ? \Carbon\Carbon::parse($enrollment->completion_date)->format('Y-m-d') : '—' }} {{ $enrollment->score ?? '—' }}
@else

لا يوجد موظفون مسجلون في هذه الدورة بعد

@endif
@endsection