text: $('#menu_alumno').attr('class','active');
  $('.oculto').hide();
  function confirmar(id) {
      metroDialog.create({
          title: "<h1>Desea Eliminar Alumno?</h1>",
          content: "Esta opción es irreversible",
          actions: [
              {
                  title: "Borrar",
                  onclick: function(el){
                      var token="{{ csrf_token()}}";
                      $.ajax({
                          url: "/alumnos/"+id+"/borrar",
                          headers: {'X-CSRF-TOKEN': token},
                          type: 'GET',
                          dataType: 'json',
                          success: function(){
                              $(el).data('dialog').close();
                              location.href='/alumnos';
                          }
                      });
                  }
  
              },
              {
                  title: "Cancelar",
                  cls: "js-dialog-close"
              }
          ],
          options: {
              //width:'500',
              background:'alert'
          }
      });
  }
  
  
  
  