<?php

namespace App\Enums;

enum ModerationStatus: string
{
    case Pending = 'pending';
    case ReviewedSafe = 'reviewed_safe';
    case ConfirmedSpam = 'confirmed_spam';
    case Ignored = 'ignored';
    case Resolved = 'resolved';

    public function label(): string
    {
        return match ($this) {
            self::Pending => 'Pending',
            self::ReviewedSafe => 'Safe',
            self::ConfirmedSpam => 'Spam',
            self::Ignored => 'Ignored',
            self::Resolved => 'Resolved',
        };
    }

    public function badgeClass(): string
    {
        return match ($this) {
            self::Pending => 'badge-warning',
            self::ReviewedSafe => 'badge-success',
            self::ConfirmedSpam => 'badge-danger',
            self::Ignored => 'badge-secondary',
            self::Resolved => 'badge-info',
        };
    }
}
