@extends('emails.layout')

@section('content')
    <h1>Subscription Expiring Soon</h1>
    <p>Hi,</p>
    <p>The subscription for <strong>{{ $association->name }}</strong> will expire in <strong>{{ $daysRemaining }} {{ $daysRemaining === 1 ? 'day' : 'days' }}</strong>.</p>

    <div class="info-box">
        <div class="info-row">
            <span class="info-label">Plan</span>
            <span class="info-value">{{ $plan->name }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Expires On</span>
            <span class="info-value">{{ $subscription->ends_at?->format('M d, Y') }}</span>
        </div>
    </div>

    <p>To avoid any interruption in service, please renew your subscription before the expiry date. Once expired, advanced modules will be locked.</p>

    <div style="text-align: center; margin: 32px 0;">
        <a href="{{ config('app.url') }}/association/admin/subscription" class="btn">Renew Now</a>
    </div>
@endsection
