<ul class="app-menu">
    <li><a class="app-menu__item <?php echo e(Route::currentRouteName() == 'home' ? 'active' : ''); ?>" href="<?php echo e(route('home')); ?>"><i
                class="app-menu__icon bi bi-speedometer"></i><span
                class="app-menu__label"><?php echo e(__('lang.dashboard')); ?></span></a>
    </li>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['books.create', 'books.read', 'books.edit'])): ?>
    <li><a class="app-menu__item <?php echo e(Str::startsWith(Route::currentRouteName(), 'books.') ? 'active' : ''); ?>"
            href="<?php echo e(route('books.index')); ?>"><i class="app-menu__icon bi bi-book-half"></i><span
                class="app-menu__label"><?php echo e(__('lang.books')); ?></span></a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['members.create', 'members.read', 'members.edit'])): ?>
    <li><a class="app-menu__item <?php echo e(Str::startsWith(Route::currentRouteName(), 'members.') ? 'active' : ''); ?>"
            href="<?php echo e(route('members.index')); ?>"><i class="app-menu__icon bi bi-people"></i><span
                class="app-menu__label"><?php echo e(__('lang.members')); ?></span></a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['borrows.create', 'borrows.read', 'borrows.edit'])): ?>
    <li><a class="app-menu__item <?php echo e(Str::startsWith(Route::currentRouteName(), 'borrows.') ? 'active' : ''); ?>"
            href="<?php echo e(route('borrows.index')); ?>"><i class="app-menu__icon bi bi-person-vcard"></i><span
                class="app-menu__label"><?php echo e(__('lang.borrows')); ?></span></a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['wastes.create', 'wastes.read', 'wastes.edit'])): ?>
    <li><a class="app-menu__item <?php echo e(Str::startsWith(Route::currentRouteName(), 'wastes.') ? 'active' : ''); ?>"
            href="<?php echo e(route('wastes.index')); ?>"><i class="app-menu__icon bi bi-trash"></i><span
                class="app-menu__label"><?php echo e(__('lang.wastes')); ?></span></a>
    </li>
    <?php endif; ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['categories.create', 'categories.read', 'categories.edit',
    'languages.create', 'languages.read', 'languages.edit',
    'locations.create', 'locations.read', 'locations.edit',
    ])): ?>

    <li class="treeview <?php echo e(Str::contains(url()->current(), 'settings') ? 'is-expanded' : ''); ?>"><a
            class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon bi bi-gear"></i><span
                class="app-menu__label"><?php echo e(__('lang.setting')); ?></span><i
                class="treeview-indicator bi bi-chevron-right"></i></a>
        <ul class="treeview-menu">
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['categories.create', 'categories.read', 'categories.edit'])): ?>
            <li>
                <a class="treeview-item  <?php echo e(Str::startsWith(Route::currentRouteName(), 'categories.') ? 'active' : ''); ?>"
                    href="<?php echo e(route('categories.index')); ?>"><i
                        class="icon bi bi-arrow-return-<?php echo e((app()->getLocale()=='en')?'right':'left'); ?>"></i>
                    <?php echo e(__('lang.categories')); ?>

                </a>
            </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['languages.create', 'languages.read', 'languages.edit'])): ?>
            <li>
                <a class="treeview-item  <?php echo e(Str::startsWith(Route::currentRouteName(), 'languages.') ? 'active' : ''); ?>"
                    href="<?php echo e(route('languages.index')); ?>"><i
                        class="icon bi bi-arrow-return-<?php echo e((app()->getLocale()=='en')?'right':'left'); ?>"></i>
                    <?php echo e(__('lang.languages')); ?>

                </a>
            </li>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['locations.create', 'locations.read', 'locations.edit'])): ?>
            <li>
                <a class="treeview-item  <?php echo e(Str::startsWith(Route::currentRouteName(), 'locations.') ? 'active' : ''); ?>"
                    href="<?php echo e(route('locations.index')); ?>"><i
                        class="icon bi bi-arrow-return-<?php echo e((app()->getLocale()=='en')?'right':'left'); ?>"></i>
                    <?php echo e(__('lang.locations')); ?>

                </a>
            </li>
            <?php endif; ?>
        </ul>
    </li>
    <?php endif; ?>
</ul><?php /**PATH D:\Laravel\library\resources\views/layouts/sideNav.blade.php ENDPATH**/ ?>