@extends('emails.layout')

@section('content')
    <h1>Voting Has Closed</h1>
    <p>The voting period for the <strong>{{ $election->title }}</strong> election at {{ $association->name }} has ended.</p>

    <div class="info-box">
        <div class="info-row">
            <span class="info-label">Election</span>
            <span class="info-value">{{ $election->title }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Voting Period</span>
            <span class="info-value">{{ $election->voting_start_at?->format('M d') }} — {{ $election->voting_end_at?->format('M d, Y') }}</span>
        </div>
    </div>

    <p>Results are now being tabulated and will be published once they have been verified. You will be notified when results become available.</p>

    <div style="text-align: center; margin: 32px 0;">
        <a href="{{ config('app.frontend_url', config('app.url')) }}/elections/{{ $election->id }}" class="btn">View Election</a>
    </div>
@endsection
