Esempio n. 1
0
 public function manageupdate(Request $request)
 {
     $info = TaskController::getnumber($request->infoprob);
     $gain = TaskController::getnumber($request->gainprob);
     $adjust_common = TaskController::getnumber($request->adjustprob);
     $adjust_list = TaskController::getnumber($request->adjustlprob);
     $adjust_cheating = TaskController::getnumber($request->adjustcprob);
     $total = $info + $gain + $adjust_common + $adjust_list + $adjust_cheating;
     if ($total != 0) {
         TaskController::viewtodb(compact('msg', 'info', 'gain', 'adjust_common', 'adjust_list', 'adjust_cheating'));
     }
     return redirect()->action('TaskController@manage');
 }