{{ __('dashboard.Subject') }}
{{ $question->subject->name ?? '-' }}
@extends('layouts.main_dashboard.app') @section('title', __('dashboard.Questions') . ' | ' . __('dashboard.View Question')) @section('content') @php $teacherName = trim(($question->user->first_name ?? '') . ' ' . ($question->user->last_name ?? '')); $groupA = is_array($question->match?->group_a) ? $question->match->group_a : (json_decode($question->match->group_a ?? '[]', true) ?? []); $groupB = 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) ?? []); $fillBlankPreview = preg_replace('/\[blank\]/', '________', $question->fillBlank->template_text ?? ''); @endphp
{{ __('dashboard.Question Bank') }}
{{ $question->question_text }}
{{ __('dashboard.Subject') }}
{{ $question->subject->name ?? '-' }}
{{ __('dashboard.Lesson') }}
{{ $question->lesson->title ?? '-' }}
{{ __('dashboard.Type') }}
{{ ucwords(str_replace('_', ' ', $question->type)) }}
{{ __('dashboard.Score') }}
{{ $question->score ?? '-' }}
{{ __('dashboard.Question Text') }}
{{ $question->question_text }}
{{ __('dashboard.Correct Answer') }}
{{ __('dashboard.Choices') }}
{{ __('dashboard.Essay Text') }}
{{ __('dashboard.Paragraph Text') }}
{{ __('dashboard.Group A') }}
{{ __('dashboard.Matching Answers') }}
{{ app()->getLocale() === 'ar' ? 'نوع الإجابة' : 'Answer Mode' }}
{{ app()->getLocale() === 'ar' ? 'الإجابة المرجعية' : 'Reference Answer' }}
{{ app()->getLocale() === 'ar' ? 'نوع الإجابة' : 'Answer Mode' }}
{{ app()->getLocale() === 'ar' ? 'الإجابة المرجعية' : 'Reference Answer' }}
{{ app()->getLocale() === 'ar' ? 'نص السؤال' : 'Blank Template' }}
{{ app()->getLocale() === 'ar' ? 'الإجابة المرجعية' : 'Reference Answer' }}