<?php

namespace App\Mail;

use App\Models\Association;
use App\Models\PlatformSubscription;
use App\Models\SubscriptionPlan;
use Illuminate\Mail\Mailables\Content;

class SubscriptionExpiredMail extends BaseGuildMail
{
    public function __construct(
        public Association $association,
        public SubscriptionPlan $plan,
        public PlatformSubscription $subscription,
    ) {
        $this->associationName = $association->name;
    }

    protected function getSubject(): string
    {
        return "Subscription Expired — {$this->association->name}";
    }

    public function content(): Content
    {
        return new Content(
            view: 'emails.subscription.expired',
        );
    }
}
