public function duplicate(Product $id): View 	{ 		$product = $id; 		$specsCategories = SpecsCategory::all(); 		$shops = Shop::all(); 		$selectedSpecsCategories = $product->specsCategories->pluck('id')->toArray(); 		$selectedShops = $product->shops->pluck('id')->toArray(); 		$accessories = Product::accessory()->get(); 		$specsByCategory = $product->specsByCategory($product); 		$selectedAvailableAccessories = $product->availableAccessories->pluck('id')->toArray(); 		$selectedIncludedAccessories = $product->includedAccessories->pluck('id')->toArray(); 		$categories = Category::all(); 		$selectedCategory = $product->category->id ?? null; 		$details = $product->details; 		$faqs = $product->faqs; 		$manuals = $product->getMedia('manuals'); 		$productFilters = $product->productFilters; 		$old_id = $product->id; 		$colors = app(GeneralSettings::class)->colors; 		$PDVRates = getCurrentMarket()->getPDVRates(); 		$manufacturers = Manufacturer::available()->includes()->get();  		$duplicate = true;  		$copy = $product->replicate(); 		$product = $copy;  		return view('products.add', compact('product', 'duplicate', 'specsCategories', 'colors', 'selectedSpecsCategories', 'specsByCategory', 'shops', 'selectedShops', 'accessories', 'selectedAvailableAccessories', 'selectedIncludedAccessories', 'categories', 'selectedCategory', 'details', 'old_id', 'PDVRates', 'manufacturers')); 	}