/**
  * Show the form for editing the specified resource.
  *
  * @param  int      $id
  * @return Response
  */
 public function edit(ClientRequest $request)
 {
     $client = $request->entity();
     $data = ['client' => $client, 'method' => 'PUT', 'url' => 'clients/' . $client->public_id, 'title' => trans('texts.edit_client')];
     $data = array_merge($data, self::getViewModel());
     if (Auth::user()->account->isNinjaAccount()) {
         if ($account = Account::whereId($client->public_id)->first()) {
             $data['planDetails'] = $account->getPlanDetails(false, false);
         }
     }
     return View::make('clients.edit', $data);
 }
 /**
  * @SWG\Get(
  *   path="/clients/{client_id}",
  *   summary="Individual Client",
  *   tags={"client"},
  *   @SWG\Response(
  *     response=200,
  *     description="A single client",
  *      @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/Client"))
  *   ),
  *   @SWG\Response(
  *     response="default",
  *     description="an ""unexpected"" error"
  *   )
  * )
  */
 public function show(ClientRequest $request)
 {
     return $this->itemResponse($request->entity());
 }