@include('livewire.polls.partials.locked-warning')
{{ __('Language') }}: @foreach ($locales as $code) @endforeach
@forelse ($questions as $index => $question) @php($type = $registry->has($question['type']) ? $registry->get($question['type']) : null)
{{ __('Question') }} {{ $index + 1 }} @unless ($contentLocked) @endunless
$contentLocked])>
@include('polls.types._error', ['field' => "questions.$index.label"]) @php($filled = array_keys(array_filter($question['label'] ?? [], fn ($label) => trim((string) $label) !== ''))) @if ($filled)

{{ __('Filled in') }}: {{ strtoupper(implode(', ', $filled)) }}

@endif
@include('polls.types._checkbox', ['model' => "questions.$index.required", 'label' => __('Answer required')]) @if ($type) @include($type->editorView(), [ 'type' => $type, 'settings' => $question['settings'] ?? [], 'prefix' => "questions.$index.settings", 'index' => $index, 'locale' => $editLocale, ]) @else

{{ __('This question type is disabled in the platform configuration.') }}

@endif
@empty

{{ __('No questions yet.') }}

@endforelse @unless ($contentLocked)
{{ __('Add question') }}
@endunless