Вопросы: {{ $test->title }}
Добавить вопрос{{ session('success') }}
@endif
@forelse($questions as $question)
@empty
#{{ $loop->iteration }}
@if($question->type === 'multiple_choice')
@php $correctCount = $question->answers->where('is_correct', true)->count(); @endphp
@if($correctCount === 1)
@else
@endif
@elseif($question->type === 'matching')
@elseif($question->type === 'ordering')
@endif
{{ Str::limit($question->question_text, 100) }}
{{ $question->answers->count() }} ответов@if($question->matchingPairs->count() > 0), {{ $question->matchingPairs->count() }} пар@endif
@if($question->is_required) Обязательный@endif
{{ $question->score }} балл(а)
Нет вопросов. Добавьте первый вопрос!
@endforelse