<?php

namespace App\Notifications;

use App\Models\EventRegistration;

class WaitlistPromotedNotification extends ArenaDatabaseNotification
{
    public function __construct(public EventRegistration $registration) {}

    public function toArray(object $notifiable): array
    {
        return $this->payload(
            'notifications.waitlist_promoted.title',
            'notifications.waitlist_promoted.message',
            ['event' => $this->registration->event->title],
            route('registrations.show', $this->registration),
            'bi-arrow-up-circle',
        );
    }
}
