public function update($id)
 {
     $classification = Classification::find($id);
     $classification->category = Input::get('category');
     $classification->name = Input::get('name');
     $classification->description = Input::get('description');
     $classification->save();
     Session::flash('message', 'Sukses Mengupdate Klasifikasi');
 }
 /**
  * Remove the specified resource from storage.
  * DELETE /projectclassification/{id}
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $classification = Classification::find($id)->delete();
     if (is_null($classification)) {
         $class = 'error';
         $message = 'Record does not exist.';
     } else {
         $class = 'success';
         $message = 'Record successfully deleted.';
     }
     return Redirect::route('project.classification.index')->with('class', $class)->with('message', $message);
 }
 public function resignsFilter($id)
 {
     $classification_id = $id;
     $classification = Classification::find($classification_id);
     $classifications = Classification::where('category', '=', 'resign')->get();
     $resigns = Resign::has('issue')->where('project_id', '=', Auth::user()->curr_project_id)->where('location_id', '=', Auth::user()->location_id)->where('classification_id', '=', $classification_id)->get();
     $menu = 'report';
     return View::make('reports.resigns', compact('classifications', 'classification', 'resigns', 'menu'));
 }