@extends('student.layouts.app') @section('title', app()->getLocale() === 'ar' ? 'التقييمات' : 'Evaluations') @section('content')

{{ app()->getLocale() === 'ar' ? 'التقييمات والنتائج' : 'Evaluations & Results' }}

{{ app()->getLocale() === 'ar' ? 'ملخص درجاتك في الاختبارات والواجبات وسجلات الدرجات المنشورة.' : 'A summary of your quiz scores, assignments, and published marks.' }}

@foreach($evaluations as $courseId => $evaluation)

{{ app()->getLocale() === 'ar' ? 'مقرر رقم' : 'Course' }} {{ $courseId }}

{{ app()->getLocale() === 'ar' ? 'اختبارات' : 'Quizzes' }}: {{ $evaluation['quizzes']->count() }} {{ app()->getLocale() === 'ar' ? 'واجبات' : 'Assignments' }}: {{ $evaluation['assignments']->count() }} {{ app()->getLocale() === 'ar' ? 'درجات' : 'Marks' }}: {{ $evaluation['marks']->count() }}
{{ app()->getLocale() === 'ar' ? 'نتائج الاختبارات' : 'Quiz Results' }}
@foreach ($evaluation['quizzes'] as $quizAnswer)
{{ $quizAnswer->quiz?->title ?: (app()->getLocale() === 'ar' ? 'اختبار' : 'Quiz') }}
{{ app()->getLocale() === 'ar' ? 'الدرجة' : 'Score' }}: {{ $quizAnswer->student_score ?? 0 }}
@endforeach @if(empty($evaluation['quizzes']))
{{ app()->getLocale() === 'ar' ? 'لا توجد نتائج اختبارات بعد.' : 'No quiz results yet.' }}
@endif
{{ app()->getLocale() === 'ar' ? 'نتائج الواجبات' : 'Assignment Results' }}
@foreach($evaluation['assignments'] as $submission)
{{ $submission->assignment?->title ?: (app()->getLocale() === 'ar' ? 'واجب' : 'Assignment') }}
{{ app()->getLocale() === 'ar' ? 'الدرجة' : 'Score' }}: {{ $submission->score ?? 0 }}
@endforeach @if(empty($evaluation['assignments']))
{{ app()->getLocale() === 'ar' ? 'لا توجد نتائج واجبات بعد.' : 'No assignment results yet.' }}
@endif
{{ app()->getLocale() === 'ar' ? 'سجل الدرجات' : 'Published Marks' }}
@foreach($evaluation['marks'] as $studentMark)
{{ $studentMark->getRelationValue('mark')?->title ?: (app()->getLocale() === 'ar' ? 'درجة منشورة' : 'Published Mark') }}
{{ app()->getLocale() === 'ar' ? 'الدرجة' : 'Score' }}: {{ $studentMark->mark ?? 0 }}
@endforeach @if(empty($evaluation['marks']))
{{ app()->getLocale() === 'ar' ? 'لا توجد درجات منشورة بعد.' : 'No published marks yet.' }}
@endif
@endforeach @if(empty($evaluations))
📊

{{ app()->getLocale() === 'ar' ? 'لا توجد تقييمات متاحة' : 'No evaluations available' }}

{{ app()->getLocale() === 'ar' ? 'ستظهر نتائجك هنا عند توفرها.' : 'Your results will appear here once available.' }}

@endif
@endsection