Вопросы: {{ $test->title }}

Добавить вопрос
@if(session('success'))
{{ session('success') }}
@endif
@forelse($questions as $question)
#{{ $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(strip_tags($question->question_text), 100) }}
{{ $question->answers->count() }} ответов@if($question->matchingPairs->count() > 0), {{ $question->matchingPairs->count() }} пар@endif @if($question->is_required) Обязательный@endif {{ $question->score }} балл(а)
@csrf @method('DELETE')
@empty

Нет вопросов. Добавьте первый вопрос!

@endforelse