    </div><!-- /content-main -->

    <!-- Footer -->
    <footer id="site-footer">
      <span>Ultra IBO &mdash; <a href="#">PrimeTime</a></span>
      <span>&copy; Designed by <a href="#">Eggzie00</a></span>
    </footer>
  </div><!-- /content-wrapper -->
</div><!-- /wrapper -->

<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>

<script>
/* ── Sidebar toggle ──────────────────────────────────────────────── */
function toggleSidebar() {
    var s = document.getElementById('sidebar');
    var o = document.getElementById('sidebar-overlay');
    if (window.innerWidth <= 900) {
        s.classList.toggle('open');
        o.classList.toggle('show');
    }
}
function closeSidebar() {
    document.getElementById('sidebar').classList.remove('open');
    document.getElementById('sidebar-overlay').classList.remove('show');
}

/* ── Delete modal ────────────────────────────────────────────────── */
$('#confirm-delete').on('show.bs.modal', function (e) {
    $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href'));
});

/* ── Flatpickr dates ─────────────────────────────────────────────── */
document.querySelectorAll('#datetimepicker, [data-datepicker]').forEach(function(el) {
    flatpickr(el, { dateFormat: 'Y-m-d', allowInput: true });
});
</script>
</body>
</html>
