@if ($results['may_export'])
{{ __('Download CSV') }}
@endif

{{ __('Ballot ledger') }}: @if ($results['chain']['valid']) {{ __('intact') }} ({{ trans_choice(':count entry|:count entries', $results['chain']['entries'], ['count' => $results['chain']['entries']]) }}) @else {{ __('broken at entry :sequence', ['sequence' => $results['chain']['broken_at']]) }} @endif

{{ __('Votes recorded: :votes. Ballots counted in the ledger: :ballots.', ['votes' => $results['response_count'], 'ballots' => $results['active_ballots']]) }} @if ($results['response_count'] !== $results['active_ballots']) {{ __('These numbers should be equal.') }} @endif

@foreach ($results['questions'] as $question) @if ($registry->has($question->type)) @php($type = $registry->get($question->type))

{{ $question->labelFor($locale) }}

@include($type->resultsView(), [ 'type' => $type, 'question' => $question, 'settings' => $question->settings ?? [], 'summary' => $results['summaries'][$question->id], 'locale' => $locale, ])
@endif @endforeach

{{ __('Voters') }}

@if ($editingPoll->anonymous)

{{ __('This poll is anonymous: voters are not shown.') }}

@elseif (!$results['may_export'])

{{ __('Who voted is shown to admins with the poll export permission.') }}

@elseif ($results['voters']->isEmpty())

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

@else
@foreach ($results['voters'] as $response) @endforeach
{{ __('Profile') }} {{ __('Submitted by') }} {{ __('Voted') }} {{ __('Changed') }}
{{ $response->voter?->name ?? __('Deleted profile') }} ({{ __(class_basename($response->voter_type)) }}) {{ $response->user?->name }} {{ $response->submitted_at->locale($locale)->isoFormat('lll') }} {{ $response->updated_at && $response->updated_at->gt($response->submitted_at->copy()->addSecond()) ? $response->updated_at->locale($locale)->isoFormat('lll') : '-' }}
@if ($results['response_count'] > $results['voters']->count())

{{ __('Showing the latest :count voters.', ['count' => $results['voters']->count()]) }}

@endif @endif