public function edit(Product $id): View 	{ 		$product = $id;  		$categories = Category::with('ancestors')->available()->latest()->get(); 		// $variants = $id->variants()->with('translations')->get()->toArray(); 		$productCategoriesList = $product->productCategories()->with('category')->get();  		$productCategories = $productCategoriesList->pluck('category_id')->toArray(); 		$vatCategory = $productCategoriesList->firstWhere('vat', true)->category ?? null;  		$variants = $id->variants()->get();  		return view('products.add', compact('product', 'categories', 'variants', 'productCategories', 'vatCategory', 'productCategoriesList')); 	}