<?php

namespace App\Mail;

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

class RgpdRequestNotification extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(public RgpdRequest $rgpdRequest) {}

    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Novo pedido RGPD — Portal Segunor',
        );
    }

    public function content(): Content
    {
        return new Content(
            view: 'emails.rgpd-request',
        );
    }
}
