'Pending', self::Available => 'Available', self::Unavailable => 'Unavailable', self::Tentative => 'Tentative', }; } public function color(): string { return match ($this) { self::Pending => 'secondary', self::Available => 'success', self::Unavailable => 'error', self::Tentative => 'warning', }; } }