<?php

namespace App\Mail;

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

class LiveSiteAccessRequestCreatedMail extends Mailable
{
    use Queueable;
    use SerializesModels;

    public function __construct(public readonly LiveSiteAccessRequest $accessRequest)
    {
    }

    public function build(): self
    {
        return $this
            ->subject('New Live Site Access Request')
            ->view('emails.live-site-access-request-created', [
                'accessRequest' => $this->accessRequest,
                'colours' => [
                    'app-text-colour' => '#000000',
                    'app-primary-colour' => '#3C576B',
                ],
            ]);
    }
}
