public function toArray($request): array 	{ 		$products = [];  		foreach ($this->resource->groupBy('matching_name') as $name => $product) { 			$products[] = new GroupedVariantsResource($product, $name); 		}  		return [ 			'parent_category_slug' => $this->parent_category_name, 			'category_name' => $this->category_name, 			'products' => $products, 		]; 	}