public function toArray($request): array 	{ 		$included_accessories = []; 		$available_accessories = [];  		$this->includedAccessories->groupBy('matching_name')->each(function (Collection $accessory) use (&$included_accessories) { 			/** @var \App\Models\Product $product */ 			$product = $accessory->first();  			$included_accessories[] = [ 				'name' => $product->name, 				'variants' => AccessoryResource::collection($accessory), 			]; 		});  		$this->availableAccessories->groupBy('matching_name')->each(function (Collection $accessory) use (&$available_accessories) { 			/** @var \App\Models\Product $product */ 			$product = $accessory->first();  			$available_accessories[] = [ 				'name' => $product->name, 				'variants' => AccessoryResource::collection($accessory), 			]; 		});  		return [ 			'id' => $this->id, 			'name' => $this->name, 			'sku' => $this->sku, 			'color' => $this->color, 			'description' => $this->description, 			'price_without_pdv' => $this->price_without_pdv, 			'price_with_pdv' => $this->price_with_pdv, 			'popular' => $this->popular, 			'discontinued' => $this->discontinued, 			'stocked' => $this->stocked, 			'specs' => $this->specsByCategoryAPI(language: app()->getLocale()), 			'faqs' => ProductFaqResource::collection($this->faqs), 			'media' => MediaResource::collection($this->getMedia('images')), 			'360-gallery' => MediaResource::collection($this->getMedia('gallery')), 			'details' => ProductDetailsResource::make($this->details), 			'video_url' => $this->video_url, 			'category' => [ 				'name' => $this->category?->name, 				'slug' => $this->category?->slug, 			], 			'manufacturer' => new ManufacturerResource($this->manufacturer), 			'possible_colors' => $this->getPossibleColorsFromVariants(), 			'included_accessories' => $included_accessories, 			'available_accessories' => $available_accessories, 			'shops' => ShopResource::collection($this->getFilteredShops()), 			'compatible_products' => new GroupedCompatibleProductsResource($this->getCompatibleProducts()), 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}