/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $productCategoryList = ProductCategory::lists('title', 'id'); $productLineList = ProductLine::lists('title', 'id'); $productList = Product::lists('title', 'id'); $productTagList = ProductTag::lists('name', 'name'); return View('admin.products.edit', ['productCategoryList' => $productCategoryList, 'productLineList' => $productLineList, 'productList' => $productList, 'product' => Product::find($id), 'productTagList' => $productTagList]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $productList = Product::lists('title', 'id'); return View('admin.masterClasses.edit', ['productList' => $productList, 'masterClass' => MasterClass::find($id)]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $productList = Product::lists('title', 'id'); $reviewTagList = ReviewTag::lists('text', 'text'); return View('admin.productReviews.edit', ['productList' => $productList, 'reviewTagList' => $reviewTagList, 'productReview' => ProductReview::find($id)]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function mainProductGallery() { return View('admin.productGalleries.main', ['productGallery' => ProductGallery::whereNull('product_category_id')->whereNull('product_line_id')->whereNull('product_id')->first(), 'productList' => Product::lists('title', 'id')]); }