@php($hasVotes = (bool) $editingPoll?->hasResponses()) @php($sealed = (bool) $editingPoll?->sealed_at)
@if ($sealed) {{-- A sealed result is final: savePoll refuses status and date changes too --}}

{{ __('This poll is closed and sealed: its result is final, so its status and dates cannot change any more.') }}

@endif
$sealed])>
@include('polls.types._error', ['field' => 'form.status'])
@include('polls.types._date', ['model' => 'form.opens_at', 'key' => 'poll-' . $editingPollId . '-opens_at']) @include('polls.types._error', ['field' => 'form.opens_at'])
@include('polls.types._date', ['model' => 'form.closes_at', 'key' => 'poll-' . $editingPollId . '-closes_at']) @include('polls.types._error', ['field' => 'form.closes_at'])
@if ($originalStatus === 'draft' && ($form['status'] ?? null) === 'open') @endif @php($latePublications = $this->latePublications()) @if ($latePublications) @endif
{{-- The one-vote rule depends on it, so it is fixed once people voted (savePoll refuses it too) --}} @include('polls.types._error', ['field' => 'form.vote_scope'])
@include('polls.types._checkbox', ['model' => 'form.allow_vote_change', 'label' => __('Voters may change their vote until the poll closes')]) {{-- Anonymity was promised to the voters: it can be switched on, never off, once people voted --}} @include('polls.types._checkbox', ['model' => 'form.anonymous', 'label' => __('Anonymous: hide who voted in the results (votes are still recorded once per voter)'), 'disabled' => $hasVotes && $editingPoll?->anonymous]) @include('polls.types._error', ['field' => 'form.anonymous'])