{{-- afficher une question uniquement si --}} @if (isset($for_displayed_if) && $for_displayed_if == true) @php($displayed_if = $item->displayQuestionIfValue()) @if (count($displayed_if)) @foreach ($displayed_if as $dp_if) {{ __('labels.LbQuestionDisplayQuestionIfShort') }} {{ $dp_if['label'] }} - {{ $dp_if['answer_pos'] ?? $dp_if['item'] }} @endforeach @endif @else {{-- tableau du question --}} @php($id_child = $id_child ?? null) {{-- envoi vers une question --}} @php($send_to_question = $for_question ? $item->sendToQuestionOption($answer, $id_child) : $answer->sendToQuestionOption($answer, $item, $id_child)) {{-- masquer par une question --}} @php($hidden_by = $for_question ? $item->hideQuestionByValue($answer, $id_child) : $answer->hideAnswerOption($item, false, $id_child)) @if ($send_to_question) @if (is_array($send_to_question)) @foreach ($send_to_question as $st) {{ $st['answer'] }} {!! config('dgc-icons.arrow-right') !!} {{ $st['label'] }} @endforeach @else {!! config('dgc-icons.arrow-right') !!} {{ $send_to_question }} @endif @endif @if (count($hidden_by)) @foreach ($hidden_by as $hdn) {!! config('dgc-icons.eye-slash-fill') !!} {{ $hdn['label'] }} - {{ $hdn['answer_pos'] ?? $hdn['item'] }} @endforeach @endif @endif