<?php

namespace App\Notifications;

use App\Models\PlayerVideo;

class VideoModerationResultNotification extends ArenaDatabaseNotification
{
    public function __construct(public PlayerVideo $video) {}

    public function toArray(object $notifiable): array
    {
        return $this->payload(
            'notifications.video_moderation.title',
            'notifications.video_moderation.message',
            [
                'title' => $this->video->title,
                'status' => $this->video->moderation_status->label(),
            ],
            url('/preview/profile/'.($this->video->playerProfile->user->username ?? '')),
            'bi-camera-video',
        );
    }
}
