/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $product = Product::find($id);
     $seasons = Season::pluck('slug', 'id')->toArray();
     $materials = Material::pluck('name_ru', 'id');
     $categories = Category::get()->linknodes()->pluck('name_ru', 'id');
     return response()->view('back.products.edit', compact('product', 'seasons', 'materials', 'categories'));
 }