public function toArray($request): array 	{ 		$products = [];  		foreach ($this->resource->groupBy('category.name') as $key => $value) { 			foreach ($value as $product_variant) { 				$products[$key][] = [ 					'name' => $product_variant->name, 					'sku' => $product_variant->sku, 				]; 			} 		}  		return $products; 	}