<?php

namespace App\Mail;

use App\Models\Application;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class ApplicationApprovedNotification extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(public Application $application, public array $transfer) {}

    public function envelope(): Envelope
    {
        return new Envelope(subject: 'Tu solicitud C.C.R. fue aprobada · '.$this->application->folio);
    }

    public function content(): Content
    {
        return new Content(view: 'emails.application-approved');
    }
}
