<?php

namespace App\Notifications;

use Illuminate\Notifications\Notification;

class VehicleSubmittedForReview extends Notification
{
    public function __construct(
        public readonly string $driverName,
        public readonly string $registrationNumber,
        public readonly string $url,
    ) {}

    public function via(object $notifiable): array
    {
        return ['database'];
    }

    public function toArray(object $notifiable): array
    {
        return [
            'title' => 'Vehicle awaiting review',
            'message' => "{$this->driverName} submitted vehicle {$this->registrationNumber} for approval.",
            'url' => $this->url,
        ];
    }
}
