document.addEventListener("DOMContentLoaded", function () {
    // Initialize datepicker for all elements with data-datepicker
    document.querySelectorAll("[data-datepicker]").forEach(input => {
        $(input).datetimepicker({
            format: "DD/MM/YYYY"
        });
    });
});