public function actionOnLeaveRequest()
 {
     $all = Input::all();
     $leave = LeaveRequest::where('id', '=', $all['id']);
     $leave->update(array('status' => $all['status']));
     return Response::jsend('success', array('msg' => sprintf("Leave status is set to %s.", $all['status'])));
 }