*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'server_id' => $this->server_id, 'type' => $this->type, 'type_data' => $this->type_data, 'name' => $this->name, 'version' => $this->version, 'unit' => $this->unit, 'status' => $this->status, 'status_color' => Service::$statusColors[$this->status] ?? 'gray', 'icon' => config('core.service_icons')[$this->name] ?? '', 'is_default' => $this->is_default, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }