text: $('.tombol-hapus').on('click', function (e) {
      e.preventDefault();
      const href = $(this).attr('href');
  
      Swal.fire({
          title: 'Apakah anda yakin',
          text: "data akan dihapus",
          icon: 'warning',
          showCancelButton: true,
          confirmButtonColor: '#3085d6',
          cancelButtonColor: '#d33',
          confirmButtonText: 'Hapus Data'
      }).then((result) => {
          if (result.value) {
              document.location.href = href;
          }
      })
  });
  
  $('.tombol-logout').on('click', function (e) {
      e.preventDefault();
      const href = $(this).attr('href');
  
      Swal.fire({
          title: 'Apakah anda yakin',
          text: "akan logout",
          icon: 'warning',
          showCancelButton: true,
          confirmButtonColor: '#3085d6',
          cancelButtonColor: '#d33',
          confirmButtonText: 'Logout'
      }).then((result) => {
          if (result.value) {
              document.location.href = href;
          }
      })
  })