executor->execute( $getCategoriesProducts, $request->toGetCategoriesProductsQueryInput() ); return Inertia::render('front/Pages/Products/Index', [ 'categoriesProducts' => $categoriesProducts, ]); } public function show( ProductDto $product, GetRelatedRecipesQuery $getRelatedRecipes, ): Response { $relatedRecipes = $this->executor->execute( $getRelatedRecipes, new GetRelatedRecipesQueryInput($product->getId(), 10) ); return Inertia::render('front/Pages/Products/Show', [ 'product' => $product, 'relatedRecipes' => $relatedRecipes, ]); } }