@php($is_label = in_array($item->type, ["heading", "text_field", "ending_text"]) ? true : false)
@php($color = $is_label ? 'info' : 'success')
@php($editing = !$is_label && $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])
{{-- content --}}
@if($editing)
{{ __('labels.in_progress') }}
@endif
{{-- answers --}}
@include('forms.quizs.answers', ['item' => $item, 'is_label' => $is_label])
{{-- params --}}
{!! config('dgc-icons.gear') !!}
@if (!$is_label)
@if($questions_count > 1)
{!! config('dgc-icons.shuffle') !!}
@endif
{!! config('dgc-icons.prescription') !!}
@if($questions_count > 1)
{!! config('dgc-icons.arrow-down') !!}
@endif
@endif
@endcomponent
@else
{{-- ENCOURS D'EDITION --}}
@endif