<?php

namespace App\Enums;

enum SupplierApplicationStatus: string
{
    case Submitted = 'submitted';
    case UnderReview = 'under_review';
    case Contacted = 'contacted';
    case Approved = 'approved';
    case Rejected = 'rejected';
    case Archived = 'archived';

    public function label(): string
    {
        return match ($this) {
            self::Submitted => 'Submetida',
            self::UnderReview => 'Em Análise',
            self::Contacted => 'Contactado',
            self::Approved => 'Aprovado',
            self::Rejected => 'Rejeitado',
            self::Archived => 'Arquivado',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::Submitted => 'info',
            self::UnderReview => 'warning',
            self::Contacted => 'primary',
            self::Approved => 'success',
            self::Rejected => 'danger',
            self::Archived => 'gray',
        };
    }
}
