@extends('layouts.app') @section('title', 'Peserta') @section('content')

Admin / Peserta

@if(session('success')) @endif @if($errors->any()) @endif
@if($selectedEventId) @php $selectedEvent = $events->firstWhere('id', $selectedEventId); $votersLocked = $selectedEvent && $selectedEvent->areVotersLocked(); @endphp @if($votersLocked) @endif
Daftar Peserta
@csrf
@if(!$votersLocked) Peserta Baru
@csrf @method('DELETE')
@else @endif
@forelse ($voters as $voter) @empty @endforelse
Email Nama Status Memilih Pada Aksi
{{ $voter->email }} {{ $voter->name ?? '-' }} @if($voter->has_voted) Sudah Memilih @else {{ $voter->status === 'pending' ? 'Tertunda' : ($voter->status === 'sent' ? 'Terkirim' : $voter->status) }} @endif {{ $voter->voted_at ? $voter->voted_at->format('Y-m-d H:i') : '-' }}
@if(!$voter->has_voted)
@csrf
@if(!$votersLocked) @endif @endif @if(!$votersLocked)
@csrf @method('DELETE')
@endif
Tidak ada peserta yang ditemukan untuk event ini.
@endif @endsection @section('page-script') @endsection