<?php

namespace App\Notifications;

use App\Models\EventPaymentProof;

class PaymentConfirmedNotification extends ArenaDatabaseNotification
{
    public function __construct(public EventPaymentProof $proof) {}

    public function toArray(object $notifiable): array
    {
        $registration = $this->proof->eventRegistration;

        return $this->payload(
            'notifications.payment_confirmed.title',
            'notifications.payment_confirmed.message',
            ['event' => $registration->event->title],
            route('registrations.show', $registration),
            'bi-check2-circle',
        );
    }
}
