<?php
/**
 * Enterprise HRM ERP System - Footer Template
 */

if (!defined('HRM_ACCESS')) {
    die('Direct access not allowed');
}
?>
            </div> <!-- End content-wrapper -->
        </main> <!-- End main-content -->
    </div> <!-- End app-container -->

    <script src="<?php echo assetUrl('assets/js/main.js'); ?>"></script>
    <?php if (isset($additionalScripts)): ?>
        <?php foreach ($additionalScripts as $script): ?>
            <script src="<?php echo assetUrl('assets/js/' . htmlspecialchars($script)); ?>"></script>
        <?php endforeach; ?>
    <?php endif; ?>
</body>
</html>
<?php 
// Only flush output buffer if it's active and not already sent
if (ob_get_level() > 0 && !headers_sent()) {
    ob_end_flush();
}
?>

