diff --git a/app/Models/Server.php b/app/Models/Server.php index 5c58f48ca2..b9a5d409d7 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -458,6 +458,9 @@ public function formatResource(string $resourceKey, bool $limit = false, ServerR } if ($type === ServerResourceType::Time) { + if ($this->isSuspended()) { + return 'Suspended'; + } if ($resourceAmount === 0) { return 'Offline'; } @@ -484,7 +487,7 @@ public function formatResource(string $resourceKey, bool $limit = false, ServerR public function condition(): Attribute { return Attribute::make( - get: fn () => $this->status?->value ?? $this->retrieveStatus(), + get: fn () => $this->isSuspended() ? 'Suspended' : $this->status?->value ?? $this->retrieveStatus(), ); }