{{ __('admin.questions.generate.step4.title') }}
{{ $this->getTotalCount() }} {{ __('admin.questions.generate.questions_generated') }}
{{ __('admin.questions.generate.validation_hint') }}
@foreach($questions as $id => $question)
{{ __('admin.questions.generate.question') }} {{ $loop->iteration }} {{ $this->getDifficulty($question)->label }}
{{ $question['question_text'] ?? $question['question'] ?? '' }}
@if(isset($question['options']) && is_array($question['options']))
@foreach($question['options'] as $index => $option) @php $correctAnswers = is_array($question['correct_answers'] ?? null) ? $question['correct_answers'] : (isset($question['correct_answer']) ? [$question['correct_answer']] : []); $isCorrect = in_array($index, $correctAnswers); @endphp
{{ chr(65 + $index) }}
{{ $option }} @if($isCorrect) @endif
@endforeach
@endif @if(isset($question['explanation']))
{{ __('admin.questions.generate.explanation') }}: {{ $question['explanation'] }}
@endif
@endforeach
@if($this->getTotalCount() > 0)
{{ $this->getSelectedCount() }} {{ __('admin.questions.generate.questions_selected') }} {{ __('admin.questions.generate.will_be_added') }}
@endif