@php($is_label = $item->isLabel())
@if (!$is_label)
@php($tags = $item->getQuestionTags())
@foreach ($tags as $tag)
{{ $tag['label'] }}
@endforeach
{{-- afficher une question appres une valeur ou une reponse d'une autre question --}}
@include('quiz.answers.condition', [
'item' => $item,
'answer' => null,
'for_displayed_if' => true,
])
@else
@php($tags = $item->getLabelTags())
@foreach ($tags as $tag)
{{ $tag['label'] }}
@endforeach
@if ($item->type === 'ending_text')
@include('quiz.answers.condition', [
'item' => $item,
'answer' => null,
'for_displayed_if' => true,
])
@endif
@endif