@lang('survey_list')

{{-- Progress Indicator (Opposite side on desktop, below on mobile) --}}
Survey Progress
@isset($breadcrumbs) @endisset
@csrf {{-- Survey Overview --}}

{{ $record->name }}

@if($record->description)

{{ $record->description }}

@endif
{{-- Categories and Questions --}}
@php $questionIndex = 0; // Use a sequential numeric index for all questions @endphp @foreach ($info as $cat_name => $questions)

{{ $cat_name }}

@foreach ($questions as $question)
required ? 'data-required="true"' : '' }}>
@if($question->description)

{{ $question->description }}

@endif
@if($question->contentType) @include('tenant.survey_answers.form', [ 'question' => $question, 'key' => $questionIndex, ]) @else

ERROR: Content type is missing for question "{{ $question->name }}" (ID: {{ $question->id }})

@endif
@php $questionIndex++; // Increment for next question @endphp @endforeach
@endforeach
{{-- Form Actions --}}
Cancel