@if($isAllowed)
Plebs
    @foreach($plebs as $pleb)
  • A
    {{ $pleb['profile']['name'] ?? $pleb['pubkey'] }}
    @foreach($positions as $name => $p) @php $votedResult = $this->loadedEvents->filter(fn ($e) => $e['pubkey'] === $pleb['pubkey'])->firstWhere('type', $name); @endphp
    @if($votedResult) @endif
    @endforeach
  • @endforeach
@if($currentPubkey)
@if($isNotClosed) @else @endif

Wahlen

Wahl des Präsidiums

{{ $positions['presidency']['title'] }}

@php $votedResult = $this->loadedEvents->filter(fn ($event) => $event['pubkey'] === $currentPubkey)->firstWhere('type', 'presidency'); $votedName = $votedResult['votedFor']['name'] ?? 'error'; @endphp @if($votedResult) Du hast "{{ $votedName }}" gewählt @else Wähle deinen Kandidaten für das Präsidium. @endif
@foreach($this->electionConfig->firstWhere('type', 'presidency')['candidates'] ?? [] as $c)
{{ $c['name'] }} {{ $c['name'] }}
@endforeach

Wahl der übrigen Vorstandsmitglieder

Klicke auf den Kandidaten, um seine Position als Vorstandsmitglied zu bestätigen.
@foreach($this->electionConfigBoard->firstWhere('type', 'board')['candidates'] ?? [] as $c)
{{ $c['name'] }} {{ $c['name'] }}
@endforeach
@endif
@else

Wahlen

Du bist nicht berechtigt, die Wahlen einzusehen.

@endif