@extends('layout-page') @inject('carbon', 'Carbon\Carbon') @section('content') @php $lang = $reservation->lang === 'Français' ? 'fr' : 'en'; @endphp {{-- --}}

{{ __('messages.quiz', [], $lang) }}

{{--

Gestion des clients

--}}
{{-- @include('shared.navbar') --}}
@csrf @foreach($questions as $key => $question)

{{ __('messages.'.$question->question, [], $lang) }} *

{{-- --}} @if($question->type == 'single_choice')
@foreach($question->options as $option)
id]) && $responses[$question->id]->option_id == $option->id) checked @endif @if($is_submitted) disabled @endif required > {{-- @if($key === 8) @endif --}}
@endforeach
@if($key === 8) @endif @elseif($question->type == 'text') @endif
@endforeach @if(!$is_submitted)
@else @endif
@endsection