@extends('emails.layout')

@section('content')
    <h1>✅ Election Results Certified</h1>
    <p>The results for the <strong>{{ $election->title }}</strong> election at {{ $association->name }} have been officially certified.</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">Status</span>
            <span class="info-value"><span class="badge badge-success">Certified</span></span>
        </div>
        <div class="info-row">
            <span class="info-label">Certified On</span>
            <span class="info-value">{{ $election->certified_at?->format('M d, Y \a\t h:i A') ?? now()->format('M d, Y') }}</span>
        </div>
    </div>

    <p>The election has been completed and the results are now final. Congratulations to all elected candidates, and thank you to all members who participated in this democratic process.</p>

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