public function toArray($request): array 	{ 		$categories = [];  		foreach ($this->resource as $category_name => $category_products) { 			$categories[] = new CategoryProductsResource($category_products, $category_name, $category_products->first()->category?->parent?->slug); 		}  		return [ 			'global_filters' => [ 				'colors' => $this->colors, 				'prices' => [ 					'min' => $this->min_price, 					'max' => $this->max_price, 				], 				'manufacturers' => ManufacturerResource::collection($this->manufacturers), 			], 			'categories' => $categories, 		]; 	}