/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @throws Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  * @return Response
  */
 public function edit($id)
 {
     $cms = Cms::newInstance(['control' => 'edit', 'action' => Lang::get('content::messages.edit')]);
     $category = Category::find($id);
     if ($category) {
         return view('newmarkets\\content::admin.category.edit', compact('category', 'cms'));
     }
     throw new NotFoundHttpException();
 }