@extends('layouts.app') @section('title', $cycle->name) @section('content') {{-- Cycle Info Card --}}

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

اسم الدورة
{{ $cycle->name }}
تاريخ البداية
{{ $cycle->start_date ? \Carbon\Carbon::parse($cycle->start_date)->format('Y-m-d') : '—' }}
تاريخ النهاية
{{ $cycle->end_date ? \Carbon\Carbon::parse($cycle->end_date)->format('Y-m-d') : '—' }}
الحالة
@if($cycle->status === 'active') نشطة @elseif($cycle->status === 'completed') مكتملة @elseif($cycle->status === 'draft') مسودة @else {{ $cycle->status }} @endif
القالب
{{ $cycle->template->name ?? $cycle->template_name ?? '—' }}
{{-- Evaluations Table --}}

التقييمات

@if($evaluations->count() > 0)
@foreach($evaluations as $index => $evaluation) {{-- Submit Evaluation Modal --}} @if($evaluation->status === 'pending' || $evaluation->status === 'in_progress') @endif {{-- View Evaluation Modal --}} @if($evaluation->status === 'completed' || $evaluation->status === 'submitted') @endif @endforeach
# الموظف المقيّم الدرجة الكلية الحالة إجراءات
{{ $index + 1 }} {{ $evaluation->employee_name }} {{ $evaluation->evaluator_name }} @if($evaluation->overall_score !== null) {{ number_format($evaluation->overall_score, 1) }}% @else — @endif @if($evaluation->status === 'completed') مكتمل @elseif($evaluation->status === 'pending') قيد الانتظار @elseif($evaluation->status === 'in_progress') قيد التنفيذ @elseif($evaluation->status === 'submitted') تم الإرسال @else {{ $evaluation->status }} @endif @if($evaluation->status === 'pending' || $evaluation->status === 'in_progress') @elseif($evaluation->status === 'completed' || $evaluation->status === 'submitted') @endif
@else

لا توجد تقييمات في هذه الدورة بعد

@endif
@endsection