<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Admin</title>

    <link rel="stylesheet" href="<?php echo e(asset('/fonts/css/all.css')); ?>">
    <script src="<?php echo e(asset('jquery.js')); ?>"></script>
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>

</head>
<body class="antialiased bg-gray-800">
<div class="font-display h-full  flex items-start">
    <?php echo $__env->make('admin.layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="w-full flex flex-col">
        <?php echo $__env->make('admin.layouts.navbar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <main class="p-3 dark:bg-gray-800 bg-slate-100">
            <?php echo $__env->yieldContent('main'); ?>

        </main>
        <?php echo $__env->make('admin.layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


    </div>
</div>

<script>
    const sidebarTrigger=document.getElementById('sidebar-trigger')
    const sidebarMenu=document.getElementById('sidebar-menu')
    const sidebarHover=document.getElementById('sidebar-hover')
    sidebarTrigger.addEventListener('click',toggleSidebar)

    function toggleSidebar() {
        sidebarMenu.classList.toggle('md:w-[300px]')
        sidebarMenu.classList.toggle('w-[300px]')
        sidebarMenu.classList.toggle('-left-[300px]')
        sidebarMenu.classList.toggle('md:left-0')
        sidebarMenu.classList.toggle('md:w-0')
        sidebarHover.classList.toggle('hidden')
    }

    sidebarHover.addEventListener('click',function (){
        // if(sidebarMenu.classList.contains('w-[300px]')){
        //     sidebarMenu.classList.remove('w-[300px]')
        //     sidebarMenu.classList.add('-left-[300px]')
        //     sidebarMenu.classList.add('w-0')
        //     sidebarHover.classList.add('hidden')
        // }

        toggleSidebar()

    })

</script>
</body>
</html>
<?php /**PATH K:\Laravel\MEC\resources\views/admin/layouts/template.blade.php ENDPATH**/ ?>