/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { //dd($id); // // $brands = Brand::all(); $categories = Category::all(); $product = Product::with('description')->find($id); $prices = $product->prices; $mrp = Mrp::with('unit')->where('product_id', $id)->first(); //dd($mrp); $images = $product->images; $units = Unit::all(); return view('admin/product/edit', compact('product', 'categories', 'brands', 'images', 'units', 'prices', 'mrp')); }