'tabler-circle-dashed', self::Successful => 'tabler-circle-check', self::Failed => 'tabler-circle-x', }; } public function getColor(): string { return match ($this) { self::InProgress => 'primary', self::Successful => 'success', self::Failed => 'danger', }; } public function getLabel(): string { return trans('server/backup.backup_status.' . strtolower($this->value)); } }