public function insertActividad()
 {
     Actividad::create(['id_tarea' => $_REQUEST['id_tarea'], 'descripcion' => $_REQUEST['descripcion'], 'estado' => 'A', 'prioridad' => 1, 'responsable' => $_REQUEST['responsable'], 'fechamax' => $_REQUEST['fechamax']]);
     $tarea = Tarea::find($_REQUEST['id_tarea']);
     // Send e-mail
     $userData = User::find($_REQUEST['responsable']);
     if ($userData) {
         if ($userData->user_email != "") {
             $emailContentHtml = "Hola " . $userData->user_name . "<br /><br />\r\n                                    Le informamos que debe realizar la actividad <strong>'" . $_REQUEST['descripcion'] . "'</strong> para la tarea '" . $tarea->titulo . "' del usuario " . $tarea->encargado . " con fecha máxima " . $_REQUEST['fechamax'];
             MailController::sendGeneralMail([["email" => $userData["user_email"]]], "Nueva actividad asignada", $emailContentHtml);
         }
     }
     return Actividad::where('id_tarea', $_REQUEST['id_tarea'])->get();
 }