<?php

namespace App\Notifications;

use App\Models\EventPaymentProof;

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

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

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