<?php

namespace App\Mail;

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

class LiveSiteAccessRequestActionedMail extends Mailable
{
    use Queueable;
    use SerializesModels;

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

    public function build(): self
    {
        $status = $this->accessRequest->status;

        return $this
            ->subject('Live Site Access Request ' . ucfirst($status))
            ->view('emails.live-site-access-request-actioned', [
                'accessRequest' => $this->accessRequest,
                'status' => $status,
                'colours' => [
                    'app-text-colour' => '#000000',
                    'app-primary-colour' => '#3C576B',
                ],
            ]);
    }
}
