/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     //
     $height = healthentry::where('user_id', $id)->where('type', healthentry::TYPE_HEIGHT)->orderBy('created_at', 'desc')->first();
     $weight = healthentry::where('user_id', $id)->where('type', healthentry::TYPE_WEIGTH)->orderBy('created_at', 'desc')->first();
     return view('player.user_modify', ['user' => User::find($id), 'player' => player::find($id), 'height' => $height, 'weight' => $weight]);
 }
 public function getHealth($id)
 {
     $advices = healthadvice::where('doctor_id', Auth::user()->id)->where('player_id', $id)->get();
     $player = player::find($id);
     return view('doctor.player.user_health', ['advices' => $advices, 'player' => $player]);
 }