Вопрос #{{ $question->id }}

Редактировать Назад
Информация
Тип:{{ $question->type }}
Вопрос:{{ $question->question_text }}
Пояснение:{{ $question->explanation ?? '—' }}
Баллы:{{ $question->score }}
Порядок:{{ $question->sort_order }}
Обязательный:@if($question->is_required)Да@elseНет@endif
@if($question->type === 'matching')
Пары
@if($question->matchingPairs->count() > 0)
    @foreach($question->matchingPairs as $pair)
  • {{ $pair->left_text }}{{ $pair->right_text }} ({{ $pair->match_score }} балл.)
  • @endforeach
@else

Нет пар

@endif
@else
Ответы
@if($question->answers->count() > 0)
    @foreach($question->answers as $answer)
  • {{ Str::limit($answer->answer_text, 50) }} @if($answer->is_correct)@endif
  • @endforeach
@else

Нет ответов

@endif
@endif