@extends('emails.layout')

@section('content')
    <h1>Candidacy Update</h1>
    <p>We regret to inform you that your candidacy for the <strong>{{ $election->title }}</strong> election has not been approved.</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">Position</span>
            <span class="info-value">{{ $candidate->position?->title ?? 'N/A' }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Status</span>
            <span class="info-value"><span class="badge badge-danger">Not Approved</span></span>
        </div>
        @if($candidate->rejection_reason)
        <div class="info-row">
            <span class="info-label">Reason</span>
            <span class="info-value">{{ $candidate->rejection_reason }}</span>
        </div>
        @endif
    </div>

    <p>If you believe this decision was made in error or would like more information, please reach out to the election committee or your association administrators.</p>
@endsection
