<?php

namespace App\Mail;

use App\Models\Association;
use App\Models\Payment;
use App\Models\User;
use Illuminate\Mail\Mailables\Content;

class PaymentReceiptMail extends BaseGuildMail
{
    public function __construct(
        public User $user,
        public Payment $payment,
        public Association $association,
    ) {
        $this->associationName = $association->name;
    }

    protected function getSubject(): string
    {
        return 'Payment Receipt — Guild360';
    }

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