<?php

namespace App\Mail;

use App\Master\Models\ImpersonationRequest;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class ImpersonationRequestCreatedMail extends Mailable
{
    use Queueable;
    use SerializesModels;

    public function __construct(public readonly ImpersonationRequest $impersonationRequest)
    {
    }

    public function build(): self
    {
        return $this
            ->subject('New Impersonation Request')
            ->view('emails.impersonation-request-created', [
                'impersonationRequest' => $this->impersonationRequest,
                'colours' => [
                    'app-text-colour' => '#000000',
                    'app-primary-colour' => '#3C576B',
                ],
            ]);
    }
}
