/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id)
 {
     $je = WingmanJournal::find($id);
     $wingman_id = $je->wingman_id;
     $je->type = Input::get('type');
     $type = Input::get('type');
     if ($type == "module_feedback") {
         $moduleName = WingmanModule::where('id', '=', Input::get('title'))->get();
         $je->title = $moduleName[0]->name;
     } else {
         $je->title = Input::get('title');
     }
     $je->on_date = date_format(date_create(Input::get('pickdate')), 'Y-m-d');
     $je->mom = Input::get('mom');
     $je->student_id = Input::get('student');
     $je->save();
     return Redirect::to(URL::to('/') . "/wingman-journal/" . $wingman_id);
 }