@for ($step = 1; $step <= $totalSteps; $step++)
{{ $step }}
@if ($step < $totalSteps)
@endif
@endfor

{{ $question->text }}

@if (session()->has('error'))
{{ session('error') }} @if (!empty($unansweredQuestions))

Unanswered Questions: {{ implode(', ', $unansweredQuestions) }}

@endif
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf {{-- Radio questions --}} @if ($question->type == 'radio') @foreach ($question->answerOptions as $option)
@if ($option->requires_input && $question->id != 5) answer_option_id ?? '') == $option->id ? '' : 'disabled' }}> @error('additional_input') {{ $message }} @enderror @endif {{-- Q5 Employment Fields --}} @if ($question->id == 5 && $option->text == 'Zaposlen/a (redovno radno vreme)')
@error('employment_company') {{ $message }} @enderror @error('employment_position') {{ $message }} @enderror
@endif
@endforeach {{-- Checkbox questions --}} @elseif ($question->type == 'checkbox') @if ($isSliderQuestion) @foreach ($question->answerOptions as $option) @php $value = isset($sliderValues[$option->id]) ? $sliderValues[$option->id] * 4 + 1 : 0; @endphp
@error('slider_values.' . $option->id) {{ $message }} @enderror
@endforeach @else @if ($question->id == 34) @php $oldAnswers = old('answer_option_ids', $selectedOptionIds); $option1Id = $question->answerOptions[0]->id; $option2Id = $question->answerOptions[1]->id; $option3Id = $question->answerOptions[2]->id; if ( (in_array($option1Id, $oldAnswers) || in_array($option2Id, $oldAnswers)) && !in_array($option3Id, $oldAnswers) ) { $oldAnswers[] = $option3Id; $oldAnswers = array_unique($oldAnswers); } @endphp
@foreach ($question->answerOptions as $index => $option) @php $optionNumber = $loop->iteration; @endphp
@if ($option->requires_input || $optionNumber == 2 || $optionNumber == 3) id, $oldAnswers) ? '' : 'disabled' }}> @error('additional_inputs.' . $option->id) {{ $message }} @enderror @endif
@endforeach

Flow instructions: Option 1 (predetermined 400 EUR per person) or Option 2 (custom amount) may be selected – not both. In either case, Option 3 (number of persons) will be auto‑selected and must be filled.

@else @php $oldAnswers = old('answer_option_ids', $selectedOptionIds); @endphp @foreach ($question->answerOptions as $option)
@if ($option->requires_input) id, $oldAnswers) ? '' : 'disabled' }}> @error('additional_inputs.' . $option->id) {{ $message }} @enderror @endif
@endforeach @endif @endif @endif
@if ($currentStep > 1) @else
@endif