</div>
<script src="assets/js/i18n.js?v=1"></script>
<script src="assets/js/app.js?v=1"></script>

<?php if(isset($extra_js) && is_array($extra_js)) foreach($extra_js as $js){ ?>
<script src="<?= htmlspecialchars($js) ?>"></script>
<?php } ?>
<!-- DataTables (optional). -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/1.13.8/js/jquery.dataTables.min.js"></script>
<script>
  document.addEventListener("DOMContentLoaded", () => {
    if (window.jQuery && jQuery.fn && jQuery.fn.DataTable) {
      const t = document.querySelector("#requestsTable");
      if (t) {
        jQuery(t).DataTable({
          pageLength: 50,
          lengthMenu: [10,25,50,100],
          order: [],
          language: (window.ECUPRATIX_DT_LANG || { search: "Search:", lengthMenu: "Show _MENU_" })
        });
      }
    }
  });
</script>
</body></html>