<?php

namespace App\Enums;

enum ModerationDomainStatus: string
{
    case Allowed = 'allowed';
    case Neutral = 'neutral';
    case Suspicious = 'suspicious';
    case Blocked = 'blocked';
    case Escalated = 'escalated';
    case ReviewRequired = 'review_required';

    public function label(): string
    {
        return match ($this) {
            self::Allowed => 'Allowed',
            self::Neutral => 'Neutral',
            self::Suspicious => 'Suspicious',
            self::Blocked => 'Blocked',
            self::Escalated => 'Escalated',
            self::ReviewRequired => 'Review Required',
        };
    }

    public function badgeClass(): string
    {
        return match ($this) {
            self::Allowed => 'badge-success',
            self::Neutral => 'badge-light',
            self::Suspicious => 'badge-warning',
            self::Blocked => 'badge-danger',
            self::Escalated => 'badge-dark',
            self::ReviewRequired => 'badge-info',
        };
    }
}