<?php

namespace App\Notifications;

use App\Models\EventRegistration;

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

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