@can('create posts') {{ __('New poll') }} @endcan
@if ($search) @endif
@foreach (['id' => __('ID'), 'title' => __('Title'), 'status' => __('Status'), 'opens_at' => __('Opens'), 'closes_at' => __('Closes'), 'responses_count' => __('Votes')] as $field => $label) @endforeach @forelse ($polls as $poll) @empty @endforelse
{{ $label }} @if ($sortField === $field) @if ($sortDirection === 'asc') ↑ @else ↓ @endif @endif
{{ __('Actions') }}
{{ $poll->id }} {{ $this->pollTitle($poll) }} @include('livewire.polls.partials.status-badge', ['poll' => $poll]) @if ($poll->archived_at) {{ __('Archived') }} @endif {{ $poll->opens_at?->locale($locale)->isoFormat('lll') ?? '-' }} {{ $poll->closes_at?->locale($locale)->isoFormat('lll') ?? '-' }} {{ number_format($poll->responses_count) }} @if (Gate::allows('update polls')) @if ($poll->archived_at) @elseif ($poll->status !== 'open') @endif @endif {{-- Only drafts nobody voted in (deletePoll() checks the ledger too) --}} @if ($poll->status === 'draft' && $poll->responses_count === 0 && Gate::allows('delete polls')) @endif
{{ __('No polls found.') }}
@if ($polls->hasPages())
{{ $polls->links('livewire.long-paginator') }}
@endif {{ __('Delete poll') }} {{ __('Delete this draft poll and its post?') }} @if ($deletingPollId && ($deleting = \App\Models\Poll::with('post.translations')->find($deletingPollId)))

{{ $this->pollTitle($deleting) }} @endif
{{ __('Cancel') }} {{ __('Delete poll') }}
{{ __('New poll') }}

{{ __('This creates the poll as a post in the Poll category. Next you add the questions. An image, a longer text and other languages can be added in the Post tab.') }}

@include('polls.types._error', ['field' => 'newPoll.locale'])
@include('polls.types._error', ['field' => 'newPoll.title'])
@include('polls.types._error', ['field' => 'newPoll.excerpt'])
{{ __('Cancel') }} {{ __('Create and add questions') }} {{ __('Processing...') }}
{{ __('Edit poll') }}: {{ $this->pollTitle($editingPoll) }} @if ($editingPoll)
$tab !== 'post'])> @include('livewire.polls.partials.post')
$tab !== 'questions'])> @include('livewire.polls.partials.questions')
$tab !== 'settings'])> @include('livewire.polls.partials.settings')
{{-- Kept in the DOM (hidden) so the location filter keeps its state between tabs --}}
$tab !== 'targeting'])> @include('livewire.polls.partials.targeting')
@if ($tab === 'results' && $results) @include('livewire.polls.partials.results') @endif @endif
{{ __('Cancel') }} @can('update posts') {{ __('Save poll') }} {{ __('Processing...') }} @endcan