<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;

abstract class ArenaDatabaseNotification extends Notification implements ShouldQueue
{
    use Queueable;

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

    protected function payload(string $titleKey, string $messageKey, array $replace = [], ?string $url = null, ?string $icon = null): array
    {
        return [
            'title' => __($titleKey, $replace),
            'message' => __($messageKey, $replace),
            'url' => $url,
            'icon' => $icon,
        ];
    }
}
