<!-- Sidebar -->
<div class="sidebar" data-background-color="dark">
    <div class="sidebar-logo">
        <!-- Logo Header -->
        <div class="logo-header" data-background-color="dark">
            <?php if(!empty(session('user_role') == 1)): ?>
                <a href="<?php echo e(route('dashboard.index')); ?>" class="logo">
                    <img src="<?php echo e(asset('admin')); ?>/img/banner_home/logo_white.png" alt="navbar brand" class="navbar-brand"
                        height="45" />
                </a>
            <?php elseif(!empty(session('user_role') == 2)): ?>
                <a href="<?php echo e(route('schedule.index')); ?>" class="logo">
                    <img src="<?php echo e(asset('admin')); ?>/img/banner_home/logo_white.png" alt="navbar brand"
                        class="navbar-brand" height="45" />
                </a>
            <?php elseif(!empty(session('user_role') == 3)): ?>
                <a href="<?php echo e(route('teaching_schedule.index')); ?>" class="logo">
                    <img src="<?php echo e(asset('admin')); ?>/img/banner_home/logo_white.png" alt="navbar brand"
                        class="navbar-brand" height="45" />
                </a>
            <?php else: ?>
                <a href="<?php echo e(route('dashboard.index')); ?>" class="logo">
                    <img src="<?php echo e(asset('admin')); ?>/img/banner_home/logo_white.png" alt="navbar brand"
                        class="navbar-brand" height="45" />
                </a>
            <?php endif; ?>
            <div class="nav-toggle">
                <button class="btn btn-toggle toggle-sidebar">
                    <i class="gg-menu-right"></i>
                </button>
                <button class="btn btn-toggle sidenav-toggler">
                    <i class="gg-menu-left"></i>
                </button>
            </div>
            <button class="topbar-toggler more">
                <i class="gg-more-vertical-alt"></i>
            </button>
        </div>
        <!-- End Logo Header -->
    </div>

    <div class="sidebar-wrapper scrollbar scrollbar-inner scroll-y-hidden">
        <div class="sidebar-content">
            <ul class="nav nav-secondary">

                
                <?php $__currentLoopData = config('apps.module'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php $__currentLoopData = $value; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if(in_array(session('user_role'), (array) $item['user_role'])): ?>
                            <li class="nav-item">
                                <a data-bs-toggle="collapse" href="#dashboard-<?php echo e($key); ?>-<?php echo e($index); ?>"
                                    class="collapsed" aria-expanded="false">
                                    <i class="<?php echo e($item['icon']); ?>"></i>
                                    <p><?php echo e($item['title']); ?></p>
                                    <span class="caret"></span>
                                </a>
                                <div class="collapse" id="dashboard-<?php echo e($key); ?>-<?php echo e($index); ?>">
                                    <ul class="nav nav-collapse">
                                        <?php $__currentLoopData = $item['subModule']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subKey => $sub): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if(in_array(session('user_role'), (array) $sub['user_role'])): ?>
                                                <li>
                                                    <?php if(Route::has($sub['route'])): ?>
                                                        <a href="<?php echo e(route($sub['route'])); ?>">
                                                            <span class="sub-item"><?php echo e($sub['title']); ?></span>
                                                        </a>
                                                    <?php else: ?>
                                                        <span class="sub-item text-danger">Route [<?php echo e($sub['route']); ?>]
                                                            not defined</span>
                                                    <?php endif; ?>
                                                </li>
                                            <?php endif; ?>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                </div>
                            </li>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </ul>
        </div>
    </div>
</div>
<!-- End Sidebar -->
<?php /**PATH C:\Users\phama\OneDrive\Desktop\Tai_Nguyen_Hoc_Tap\DuAnPHP3\SchoolManagementSystem\resources\views/training_officer/dashboard/components/sidebar.blade.php ENDPATH**/ ?>