<?php

namespace App\Mail;

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

class NewModelRequestMail extends Mailable
{
    use Queueable;
    use SerializesModels;

    public function __construct(public readonly ModelRequest $modelRequest)
    {
    }

    public function build(): self
    {
        return $this
            ->subject('New Vehicle Model Request: ' . $this->modelRequest->model_name)
            ->view('emails.new-model-request', [
                'modelRequest' => $this->modelRequest,
                'colours' => $this->getColours(),
            ]);
    }

    private function getColours(): array
    {
        return [
            'app-text-colour' => '#000000',
            'app-primary-colour' => '#3C576B',
        ];
    }
}
