<?php

namespace App\Enums;

enum PaymentProofStatus: string
{
    case Pending = 'pending';
    case Approved = 'approved';
    case Rejected = 'rejected';
    case InfoRequested = 'info_requested';

    public function label(): string
    {
        return __(match ($this) {
            self::Pending => 'Pending review',
            self::Approved => 'Approved',
            self::Rejected => 'Rejected',
            self::InfoRequested => 'More info requested',
        });
    }

    public function color(): string
    {
        return match ($this) {
            self::Pending => '#F5A524',
            self::Approved => '#22C55E',
            self::Rejected => '#EF4444',
            self::InfoRequested => '#0EA5E9',
        };
    }
}
