</div><!-- /.content-wrapper -->
        
<footer class="main-footer">
    <div class="float-right d-none d-sm-block">
        <b>Version</b> 1.0.0
    </div>
    <strong>Copyright &copy; <?php echo date('Y'); ?> <a href="/"><?php echo get_setting('site_name', 'Hugong Aparati'); ?></a>.</strong> Sva prava zadržana.
</footer>
</div><!-- ./wrapper -->

<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>

<!-- AdminLTE App -->
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2.0/dist/js/adminlte.min.js"></script>


<script>
document.addEventListener('DOMContentLoaded', function() {
    // Auto-close alerts after 5 seconds
    setTimeout(function() {
        document.querySelectorAll('.alert').forEach(function(alert) {
            $(alert).fadeOut('slow');
        });
    }, 5000);
    
    <?php if (strpos($_SERVER['PHP_SELF'], '/products/') !== false): ?>
    // Initialize Dropzone if present
    if (typeof Dropzone !== 'undefined' && document.getElementById('dropzone-upload')) {
        Dropzone.autoDiscover = false;
        new Dropzone("#dropzone-upload", {
            url: "/admin/upload-handler.php",
            paramName: "file",
            maxFilesize: 5,
            acceptedFiles: "image/*",
            addRemoveLinks: true,
            dictRemoveFile: "Ukloni"
        });
    }
    <?php endif; ?>
});
</script>

<script src="/admin/assets/js/admin-menu.js"></script>

</body>
</html>