/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return json
  */
 public function destroy($id)
 {
     $statusproject = StatusProject::find($id);
     if ($statusproject != null) {
         $statusproject->delete();
     }
     return json_encode("success");
 }
 /**
  * View create detail feature
  * @return [type] [description]
  */
 public function createDetailFeature()
 {
     $featureprojects = FeatureProject::all();
     $statusprojects = StatusProject::all();
     $categoryfeatures = CategoryFeature::all();
     $priorities = Priority::all();
     $employees = Employee::all();
     return view('manageproject.createdetailfeature', compact('featureprojects', 'statusprojects', 'categoryfeatures', 'priorities', 'employees'));
 }
 public function getStatus()
 {
     //if (Request::ajax()) {
     return json_encode(StatusProject::all());
     //}
 }