document.addEventListener('DOMContentLoaded', function () {
  if (window.jQuery) {
    if ($.fn.select2) {
      $('.select2').select2({ theme: 'bootstrap-5' });
    }
    if ($.fn.DataTable && $('.data_table').length) {
      $('.data_table').DataTable();
    }
  }
});
function showConfirmBox() {
  return window.confirm('Are you sure you want to proceed?');
}
