@extends('layouts.main_dashboard.app') @section('title', __('dashboard.Questions') . ' | ' . __('dashboard.Edit Question')) @section('content') @php $currentYearId = $question->subject->grade->stage->term->year->id ?? null; $currentTermId = $question->subject->grade->stage->term->id ?? null; $currentStageId = $question->subject->grade->stage->id ?? null; $currentGradeId = $question->subject->grade->id ?? null; $mcqChoices = old('choices', json_decode($question->mcq->choices ?? '[]', true) ?? []); $groupA = old('a', is_array($question->match?->group_a) ? $question->match->group_a : (json_decode($question->match->group_a ?? '[]', true) ?? [])); $groupB = old('b', is_array($question->match?->group_b) ? $question->match->group_b : (json_decode($question->match->group_b ?? '[]', true) ?? [])); $matchMap = is_array($question->match?->match) ? $question->match->match : (json_decode($question->match->match ?? '[]', true) ?? []); $oldMatchValues = old('match'); @endphp
{{ __('dashboard.Question Form') }}
تحديث السؤال الحالي مع الحفاظ على نوعه ووسائطه وربطه الأكاديمي، ثم مراجعة الإجابة الصحيحة قبل الحفظ.