@php($is_label = $item->isLabel()) @php($color = $is_label ? 'info' : 'success') @php($editing = $item->id == request('question_id')) @if (!$editing) @component('components.cards.status', [ 'color' => $color, 'class' => 'mb-4 quiz-element ' . ($editing ? 'in_progress_question' : ''), 'attributes' => 'data-type=' . $item->type . ' data-id=' . $item->id . ' data-ischoice=' . (int) $item->isChoice(), ])
{{ __('labels.LbQuestionTableItems', ['item' => $tb_val]) }}
@include('quiz.answers.answers', [ 'child_question' => $child_question, 'item' => $item, 'is_label' => $is_label, 'id_child' => $id_child, 'class' => 'dgc-form-input', ])