@foreach($groupedQuestions as $groupId => $questions)
{{ __('dashboard.qui_group') }}: {{ $questions->first()->group->name }}
@foreach($questions as $question)
{{ __('dashboard.Qui_text_ar') }}: {{ $question->question_text }}
{{ __('dashboard.marks') }}: {{ $question->marks }}
{{ __('dashboard.Qui_type') }}:
{{ $question->question_type == 1 ? __('dashboard.Qui_multi') : __('dashboard.Qui_essay') }}
@if ($question->video)
{{ __('dashboard.Qui_video') }}:
@endif
@if ($question->question_type == 1)
{{ __('dashboard.Qui_options') }}:
@foreach ($question->choices as $choice)
-
{{ $choice->choice_text }} / {{ $choice->is_correct }}
@if ($choice->is_correct == 1)
{{ __('dashboard.Qui_correct_option') }}
@endif
@endforeach
@endif
@if ($question->question_type == 2)
{{ __('dashboard.Qui_correct_answer') }}:
@foreach ($question->essayAnswers as $answer)
-
{{ $answer->user_answer }} ---- {{ $answer->correct_answer }}
@endforeach
@endif
@endforeach
@endforeach