<?php echo $__env->make('User_layout.links', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<script>
(function () {
    const theme = localStorage.getItem("theme") || "light";
    document.documentElement.setAttribute("data-bs-theme", theme);
})();
</script>
<script>
    document.addEventListener("DOMContentLoaded", function () {
        const toggleBtn = document.getElementById("themeToggle");
        const icon = document.getElementById("themeIcon");

        let theme = document.documentElement.getAttribute("data-bs-theme");
        updateIcon(theme);

        toggleBtn.addEventListener("click", function () {
            theme = theme === "light" ? "dark" : "light";
            document.documentElement.setAttribute("data-bs-theme", theme);
            localStorage.setItem("theme", theme);
            updateIcon(theme);
        });

        function updateIcon(theme) {
            if (theme === "dark") {
                icon.classList.remove("tabler-moon-stars");
                icon.classList.add("tabler-sun");
            } else {
                icon.classList.add("tabler-moon-stars");
                icon.classList.remove("tabler-sun");
            }
        }
    });
</script>
<body>
    <div class="layout-wrapper layout-content-navbar  ">
        <div class="layout-container">
            <?php echo $__env->make('User_layout.side_bar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            <div class="layout-page">
                <?php echo $__env->make('User_layout.nav_bar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <div class="content-wrapper">
                    <div class="container-xxl flex-grow-1 container-p-y">
                        <?php echo $__env->yieldContent('content'); ?>
                    </div><?php /**PATH /var/www/html/omiga_ipl/resources/views/User_layout/header.blade.php ENDPATH**/ ?>