@extends('emails.layout')

@section('content')
    <h1>Subscription Activated</h1>
    <p>Great news! The subscription for <strong>{{ $association->name }}</strong> has been activated.</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">Billing Cycle</span>
            <span class="info-value">{{ ucfirst($plan->billing_cycle) }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Amount</span>
            <span class="info-value">&#8358;{{ number_format($subscription->amount, 2) }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Active Until</span>
            <span class="info-value">{{ $subscription->ends_at?->format('M d, Y') ?? 'N/A' }}</span>
        </div>
        <div class="info-row">
            <span class="info-label">Member Limit</span>
            <span class="info-value">{{ $subscription->member_limit == -1 ? 'Unlimited' : number_format($subscription->member_limit) }}</span>
        </div>
    </div>

    <p>Your association now has full access to all modules included in the <strong>{{ $plan->name }}</strong> plan.</p>
@endsection
