<?php

namespace App\Notifications;

use App\Notifications\Channels\FcmChannel;
use Illuminate\Notifications\Notification;

class TestFcmNotification extends Notification
{
    public function via(object $notifiable): array
    {
        return [FcmChannel::class];
    }

    /**
     * @return array{title: string, body: string, data: array<string, string>}
     */
    public function toFcm(object $notifiable): array
    {
        return [
            'title' => 'KiyoHR Test',
            'body' => 'FCM push test from artisan fcm:test',
            'data' => [
                'type' => 'test',
                'route' => '/dashboard',
            ],
        ];
    }
}
