public function closeQuestion()
 {
     if (!empty(Input::get('question_id'))) {
         $question_id = Input::get('question_id');
     }
     if (!empty($question_id)) {
         $Question = Question::find($question_id);
         $Question->queryStatus = 'closed';
         $Question->save();
         $usersFeedDelete = Karmafeed::where('id_type', '=', $question_id)->delete();
         return Redirect::to('/karma-queries');
     }
 }
 public function deletequery()
 {
     $id = Input::get('queryId');
     $deleteQuestionwillingtohelp = Questionwillingtohelp::where('question_id', '=', $id)->delete();
     $deleteGroupQuestion = Groupquestion::where('question_id', '=', $id)->delete();
     $deleteQuestion = Question::where('id', '=', $id)->delete();
     $deleteKarmafeed = Karmafeed::where('id_type', '=', $id)->whereIn('message_type', array('KarmaQuery', 'OfferHelpTo'))->delete();
     $deleteMykarma = Mykarma::where('entry_id', '=', $id)->whereIn('users_role', array('PostedQuery', 'OfferedHelp'))->delete();
     echo "Question " . $id . " deleted";
 }