<aside class="sidebar">
    <?php
        $vaiTro = Session::get('VaiTro');
        $bangquyen = Session::get('BangQuyen');
    ?>
    <a class="sidebar__nav-group-button sidebar__nav-link <?php echo e(($active==1)? 'active' : ''); ?>" href="<?php echo e(route('admin')); ?>">
        <i class="fa-solid fa-house sidebar__nav-link-icon"></i>
        <p class="sidebar__nav-link-name">Trang chủ</p>
    </a>
    <?php if(in_array( 1,$bangquyen)): ?>
    <details class="sidebar__nav-group" <?php echo e(($active==2)? 'open' : ''); ?>>
        <summary class="sidebar__nav-group-button <?php echo e(($active==2)? 'active' : ''); ?>">
            <a class="sidebar__nav-link <?php echo e(($active==2)? 'active' : ''); ?>" href="<?php echo e(route('quanlytintuc')); ?>">
                <i class="fa-solid fa-newspaper sidebar__nav-link-icon"></i>
                <p class="sidebar__nav-link-name">Quản lý tin tức</p>
            </a>
        </summary>
        <div class="sidebar__child-nav-container">
            <?php if(in_array(4, $bangquyen)): ?>
            <a href="<?php echo e(route('baiviet')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Thêm bài viết</p>
            </a>
            <?php endif; ?>
            <?php if(in_array(5, $bangquyen)): ?>
            <a href="<?php echo e(route('danhsachbaiviet')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Danh sách bài viết</p>
            </a>
            <?php endif; ?>
            <?php if(in_array(6, $bangquyen)): ?>
            <a href="<?php echo e(route('loaitin')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Danh sách loại tin</p>
            </a>
            <?php endif; ?>
            <?php if(in_array(7, $bangquyen)): ?>
            <a href="<?php echo e(route('theloai')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Danh sách thể loại</p>
            </a>
            <?php endif; ?>
            <?php if($vaiTro == 'SYSTEM_ADMIN'): ?>
            <a href="<?php echo e(route('danhsachmenu')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Danh sách Menu</p>
            </a>
            <?php endif; ?>
        </div>
    </details>
    <?php endif; ?>
    <?php if(in_array( 2,$bangquyen)): ?>
    <details class="sidebar__nav-group" <?php echo e(($active==3)? 'open' : ''); ?>>
        <summary class="sidebar__nav-group-button <?php echo e(($active==3)? 'active' : ''); ?>">
            <a class="sidebar__nav-link <?php echo e(($active==3)? 'active' : ''); ?>" href="<?php echo e(route('quanlythongtin')); ?>">
                <i class="fa-solid fa-file-invoice sidebar__nav-link-icon"></i>
                <p class="sidebar__nav-link-name">Quản lý thông tin</p>
            </a>
        </summary>
        <div class="sidebar__child-nav-container">
            <?php if(in_array( 8,$bangquyen)): ?>
            <a href="<?php echo e(route('dotxettuyen')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Đợt xét tuyển - HIển thị kết quả</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 9,$bangquyen)): ?>
            <a href="<?php echo e(route('tinh')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Danh sách tỉnh - Trường THPT</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 10,$bangquyen)): ?>
            <a href="<?php echo e(route('nhommon')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Nhóm môn học - môn học</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 11,$bangquyen)): ?>
            <a href="<?php echo e(route('qltt/khuvuc')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Khu vực ưu tiên</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 12,$bangquyen)): ?>
            <a href="<?php echo e(route('doituong')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Đối tượng ưu tiên</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 13,$bangquyen)): ?>
            <a href="<?php echo e(route('nganhhoc')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Ngành học</p>
            </a>
            <?php endif; ?>
            <?php if($vaiTro == 'SYSTEM_ADMIN'): ?>
            <a href="<?php echo e(route('nhapdulieutrungtuyen')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Nhập dữ liệu trúng tuyển</p>
            </a>
            <?php endif; ?>
            <?php if($vaiTro == 'SYSTEM_ADMIN'): ?>
            <a href="<?php echo e(route('suabangdulieutrungtuyen')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Sửa bảng dữ liệu trúng tuyển</p>
            </a>
            <?php endif; ?>
        </div>
    </details>
    <?php endif; ?>
    <?php if(in_array( 3,$bangquyen)): ?>
    <details class="sidebar__nav-group" <?php echo e(($active==4)? 'open' : ''); ?>>
        <summary class="sidebar__nav-group-button <?php echo e(($active==4)? 'active' : ''); ?>">
            <a class="sidebar__nav-link <?php echo e(($active==4)? 'active' : ''); ?>" href="<?php echo e(route('ketquaxettuyen')); ?>">
                <i class="fa-solid fa-address-card sidebar__nav-link-icon"></i>
                <p class="sidebar__nav-link-name">Kết quả đăng ký xét tuyển</p>
            </a>
        </summary>
        <div class="sidebar__child-nav-container">
            <?php if(in_array( 14,$bangquyen)): ?>
            <a href="<?php echo e(route('hocba')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Theo học bạ</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 15,$bangquyen)): ?>
            <a href="<?php echo e(route('thiTHPT')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Theo kết quả thi THPT Quốc gia</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 16,$bangquyen)): ?>
            <a href="<?php echo e(route('lop12')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Theo kết quả lớp 12</p>
            </a>
            <?php endif; ?>
            <?php if(in_array( 17,$bangquyen)): ?>
            <a href="<?php echo e(route('diemmax')); ?>" class="sidebar__nav-link">
                <p class="sidebar__nav-link-name">Xét tuyển dựa vào điểm MAX</p>
            </a>
            <?php endif; ?>
        </div>
    </details>
    <?php endif; ?>
    <?php if($vaiTro == 'SYSTEM_ADMIN'): ?>
        <a class="sidebar__nav-group-button sidebar__nav-link <?php echo e(($active==5)? 'active' : ''); ?>" href="<?php echo e(route('nguoidung')); ?>">
            <i class="fa-solid fa-circle-user sidebar__nav-link-icon"></i>
            <p class="sidebar__nav-link-name">Quản lý người dùng</p>
        </a>
    <?php else: ?>
        <a class="sidebar__nav-group-button sidebar__nav-link <?php echo e(($active==5)? 'active' : ''); ?>" href="<?php echo e(route('thongtincanhan')); ?>">
            <i class="fa-solid fa-circle-user sidebar__nav-link-icon"></i>
            <p class="sidebar__nav-link-name">Thông tin cá nhân</p>
        </a>
    <?php endif; ?>
</aside>
<?php /**PATH /home/demo/public_html/resources/views/masterSidebar.blade.php ENDPATH**/ ?>