<?php

namespace App\Enums;

enum FraudReportStatus: string
{
    case Open = 'open';
    case Investigating = 'investigating';
    case Resolved = 'resolved';
    case Closed = 'closed';

    public function label(): string
    {
        return match ($this) {
            self::Open => 'Open',
            self::Investigating => 'Investigating',
            self::Resolved => 'Resolved',
            self::Closed => 'Closed',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::Open => 'bg-yellow-100 text-yellow-700',
            self::Investigating => 'bg-blue-100 text-blue-700',
            self::Resolved => 'bg-green-100 text-green-700',
            self::Closed => 'bg-gray-100 text-gray-700',
        };
    }
}
