@extends('layouts.public') @section('title', 'Ballot — ' . $election->title) @push('styles') @endpush @section('content')
{{ $voter->full_name }}
0 / {{ $positions->count() }} positions

{{ $election->title }}

Select ONE candidate per position. Review carefully before submitting — you cannot change your vote.

@if($errors->any())
@foreach($errors->all() as $err)
{{ $err }}
@endforeach
@endif
@csrf @foreach($positions as $position)

{{ $position->name }}

@if($position->description) {{ $position->description }} @endif
Please select a candidate
@foreach($position->candidates as $candidate)
@if($candidate->photo) {{ $candidate->name }} @else
@endif
{{ $candidate->name }}
@if($candidate->campaign_message) {{ Str::limit($candidate->campaign_message, 80) }} @endif
@endforeach
@endforeach
@endsection @push('scripts') @endpush