@extends('layouts.main_dashboard.app') @php $isAr = app()->getLocale() === 'ar'; @endphp @section('title', ($isAr ? 'تعديل درجات الطالب' : 'Edit Student Marks') . ' | ' . $student->name) @section('content')
{{ substr($student->first_name, 0, 1) }}

{{ $student->first_name }} {{ $student->last_name }}

{{ $student->registration_number }}

@php $class = $student->schoolClass->first(); @endphp {{ $evaluation->grade->stage->name ?? '-' }} {{ $class->name ?? '-' }}

{{ $isAr ? 'رصد الدرجات النهائية' : 'Record Final Marks' }}

{{ $isAr ? 'أدخل الدرجات لكل مادة دراسية، سيتم حساب التقدير تلقائياً.' : 'Enter marks for each subject, rating will be calculated automatically.' }}

@csrf
@foreach($subjects as $subject) @php $currentMark = $marks[$subject->id] ?? ''; @endphp @endforeach
{{ $isAr ? 'المادة الدراسية' : 'Subject' }} {{ $isAr ? 'الدرجة' : 'Mark' }} {{ $isAr ? 'التقدير المتوقع' : 'Estimated Rating' }} {{ $isAr ? 'الحالة' : 'Status' }}
{{ $loop->iteration }}

{{ $subject->name }}

{{ $isAr ? 'الدرجة العظمى' : 'Max Mark' }}: {{ $subject->total_marks }}

-
{{ $isAr ? 'إلغاء' : 'Discard' }}
@endsection @section('scripts') @endsection