<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
    <!-- Sidebar - Brand -->
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="<?php echo e(route('admin.dashboard')); ?>">
        <div class="sidebar-brand-icon rotate-n-15">
            <i class="fas fa-map-marker-alt"></i>
        </div>
        <div class="sidebar-brand-text mx-3">Super Admin</div>
    </a>

    <!-- Divider -->
    <hr class="sidebar-divider my-0" />

    <!-- Nav Item - Dashboard -->
    <li class="nav-item <?php echo e(Route::is('admin.dashboard') ? 'active' : ''); ?>">
        <a class="nav-link" href="<?php echo e(route('admin.dashboard')); ?>">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>Dashboard</span></a>
    </li>

    <!-- Divider -->
    <hr class="sidebar-divider" />
    <!-- Nav Item - Pages Collapse Menu -->
    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUserManagement-1"
            aria-expanded="true" aria-controls="collapseUserManagement-1">
            <i class="fas fa-fw fa-folder"></i>
            <span>User Management</span>
        </a>
        <div id="collapseUserManagement-1"
            class="collapse <?php echo e(Route::is('admin.roles.*') ? 'show' : ''); ?> <?php echo e(Route::is('admin.permissions.*') ? 'show' : ''); ?> <?php echo e(Route::is('admin.users.*') ? 'show' : ''); ?>"
            aria-labelledby="headingPages" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('Role access', 'Role create', 'Role edit', 'Role delete')): ?>
                    <a class="collapse-item <?php echo e(Route::is('admin.roles.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.roles.index')); ?>">Roles</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('Permission access', 'Permission create', 'Permission edit', 'Permission delete')): ?>
                    <a class="collapse-item <?php echo e(Route::is('admin.permissions.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.permissions.index')); ?>">Permissions</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('User access', 'User create', 'User edit', 'User delete')): ?>
                    <a class="collapse-item <?php echo e(Route::is('admin.users.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.users.index')); ?>">Staff</a>
                <?php endif; ?>
            </div>
        </div>
    </li>
    

    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#setting-pages"
            aria-expanded="true" aria-controls="setting-pages">
            <i class="fas fa-fw fa-folder"></i>
            <span> Setting</span>
        </a>
        <div id="setting-pages"
            class="collapse <?php echo e(Route::is('admin.pages.*') ? 'show' : ''); ?> <?php echo e(Route::is('admin.general-settings.*') ? 'show' : ''); ?> <?php echo e(Route::is('admin.email-configurations.*') ? 'show' : ''); ?> <?php echo e(Route::is('admin.database_backup.*') ? 'show' : ''); ?> <?php echo e(Route::is('admin.cache_clear.*') ? 'show' : ''); ?>"
            aria-labelledby="headingPages" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('Setting access', 'Setting create', 'Setting edit', 'Setting delete')): ?>
                    <a class="collapse-item <?php echo e(Route::is('admin.general-settings.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.general-settings.index')); ?>">General Setting</a>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('Smtp access', 'Smtp create', 'Smtp edit', 'Smtp delete')): ?>
                    <a class="collapse-item <?php echo e(Route::is('admin.email-configurations.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.email-configurations.index')); ?>">Email Configuration</a>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('Setting access', 'Setting create', 'Setting edit', 'Setting delete')): ?>
                    <!--<a class="collapse-item <?php echo e(Route::is('admin.database_backup.*') ? 'active' : ''); ?>"-->
                    <!--    href="<?php echo e(route('admin.database_backup')); ?>">Database Backup</a>-->
                    <a class="collapse-item <?php echo e(Route::is('admin.cache_clear.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.cache_clear')); ?>">Cache Clear</a>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('Page access', 'Page create', 'Page edit', 'Page delete')): ?>
                    <a class="collapse-item <?php echo e(Route::is('admin.pages.*') ? 'active' : ''); ?>"
                        href="<?php echo e(route('admin.pages.index')); ?>">Create Page</a>
                <?php endif; ?>
            </div>
        </div>
    </li>



    <!-- Divider -->
    <hr class="sidebar-divider d-none d-md-block" />

    <!-- Sidebar Toggler (Sidebar) -->
    <div class="text-center d-none d-md-inline">
        <button class="rounded-circle border-0" id="sidebarToggle"></button>
    </div>
</ul>
<!-- End of Sidebar -->
<?php /**PATH /home/doptorbd/hotel.doptor.com.bd/resources/views/admin/layouts/partials/sidebar.blade.php ENDPATH**/ ?>