<?php

namespace App\Enums;

enum IntakeStatus: string
{
    case Upcoming = 'upcoming';
    case Open = 'open';
    case Closed = 'closed';
    case Archived = 'archived';

    public function label(): string
    {
        return ucfirst($this->value);
    }

    public function color(): string
    {
        return match ($this) {
            self::Upcoming => 'sky',
            self::Open => 'emerald',
            self::Closed => 'amber',
            self::Archived => 'slate',
        };
    }
}
