@extends('layouts.main_dashboard.app') @php $isAr = app()->getLocale() === 'ar'; @endphp @section('title', __('dashboard.Final Evaluations')) @section('page_heading', __('dashboard.Final Evaluations')) @section('skip_page_hero', true) @section('content')

{{ __('dashboard.Final Evaluations') }}

{{ $isAr ? 'أنشئ ملفات التقييم النهائي وراجع السجل الكامل للملفات حسب المرحلة والصف والفصل الدراسي.' : 'Create final evaluation files and review the full archive by stage, grade, and academic term.' }}

{{ __('dashboard.Generated Files History') }}

{{ $isAr ? 'راجع الملفات التي تم إنشاؤها مسبقًا، وافتح كل ملف لإدارة التحميل والاستيراد والدرجات.' : 'Review previously created files and open each one to manage export, import, and marks.' }}

{{ $isAr ? 'إجمالي الملفات' : 'Total Files' }}

{{ $evaluations->total() }}

{{ $isAr ? 'ملفات هذه الصفحة' : 'This Page' }}

{{ $evaluations->count() }}

{{ $isAr ? 'آخر تحديث' : 'Latest Update' }}

{{ optional($evaluations->first()?->created_at)->format('Y-m-d') ?? '-' }}

@if($evaluations->isEmpty())

{{ __('dashboard.No evaluation files generated yet.') }}

{{ __('dashboard.Use the form above to generate your first file.') }}

@else
@foreach($evaluations as $evaluation) @endforeach
{{ $isAr ? 'عنوان الملف' : 'File Title' }} {{ $isAr ? 'الصف والمرحلة' : 'Stage & Grade' }} {{ $isAr ? 'العام والفصل' : 'Year & Term' }} {{ $isAr ? 'تاريخ الإنشاء' : 'Created At' }} {{ __('dashboard.Actions') }}

{{ $evaluation->title }}

{{ $evaluation->grade->stage->name ?? '-' }}

{{ $evaluation->grade->name ?? '-' }}

{{ $evaluation->academicYear->name ?? '-' }}

{{ $evaluation->term->name ?? '-' }}

{{ $evaluation->created_at->format('Y-m-d') }}

{{ $evaluation->created_at->diffForHumans() }}

{{ __('dashboard.View') }}
@csrf @method('DELETE')
{{ $evaluations->appends(request()->query())->links('pagination::simple-tailwind') }}
@endif
@csrf

{{ $isAr ? 'إضافة ملف تقييم نهائي' : 'Add Final Evaluation File' }}

{{ $isAr ? 'حدّد العام والفصل ونطاق الإنشاء ثم احفظ الملف.' : 'Choose the year, term, and scope, then save the file.' }}

@endsection @section('scripts') @endsection