<?php if(checkSettings('store') == 'enable'): ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory_store')): ?>
        <li
            class="nav-item  <?php echo e(request()->routeIs(['requisition.pending', 'requisition.index', 'requisition.create', 'stock.index', 'purchase*', 'branch*', 'item*', 'item-category*', 'unit*', 'supplier*', 'purchase.create', 'item-return*', 'show-serial-no', 'adj-type*', 'adjustment*']) ? 'menu-open' : ''); ?>">
            <a href="#" class="nav-link ">
                <i class="nav-icon fas fa-archive"></i>
                <p>
                    Store
                    <i class="fas fa-angle-left right"></i>
                </p>
            </a>
            <ul class="nav nav-treeview ml-2">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('requisition_index')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(route('requisition.create')); ?>"
                            class="nav-link <?php echo e(request()->routeIs(['requisition.create']) ? 'active' : ''); ?>">
                            <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                            <p>Add Requisition</p>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('get-inventory-list')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(route('adjustment.index')); ?>"
                            class="nav-link <?php echo e(request()->routeIs(['adjustment*']) ? 'active' : ''); ?>">
                            <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                            <p>Adjustments</p>
                        </a>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs(['adj-type*']) ? 'menu-open' : ''); ?>">
                        <a href="#" class="nav-link">
                            <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                            <p> Adjustment Type
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview ml-2">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier_create')): ?>
                                <li class="nav-item"><a href="<?php echo e(route('adj-type.create')); ?>"
                                        class="nav-link <?php echo e(request()->routeIs(['adj-type.create']) ? 'active' : ''); ?>">
                                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                        <p>Add Type</p>
                                    </a></li>
                            <?php endif; ?>

                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier_index')): ?>
                                <li class="nav-item"><a href="<?php echo e(route('adj-type.index')); ?>"
                                        class="nav-link <?php echo e(request()->routeIs(['adj-type.index', 'adj-type.edit']) ? 'active' : ''); ?>">
                                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                        <p>Types</p>
                                    </a></li>
                            <?php endif; ?>

                        </ul>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs(['branch*']) ? 'menu-open' : ''); ?>">
                        <a href="#" class="nav-link">

                            <i class="ml-3 fa-solid fa-code-branch fa-copy"></i>
                            <p> Branch
                                <i class="fas fa-angle-left right"></i>
                            </p>


                        </a>
                        <ul class="nav nav-treeview ml-2">

                            <li class="nav-item"><a href="<?php echo e(route('branch.create')); ?>"
                                    class="nav-link <?php echo e(request()->routeIs(['branch.create']) ? 'active' : ''); ?>">
                                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                    <p>Add Branch</p>
                                </a>
                            </li>

                            <li class="nav-item"><a href="<?php echo e(route('branch.index')); ?>"
                                    class="nav-link <?php echo e(request()->routeIs(['branch.index']) ? 'active' : ''); ?>">
                                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                    <p>Branches</p>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs(['item-category*']) ? 'menu-open' : ''); ?>">
                        <a href="#" class="nav-link">

                            <i class="ml-3 fa-solid fa-shapes fa-copy"></i>
                            <p>Category
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview ml-2">

                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory-group_create')): ?>
                                <li class="nav-item"><a href="<?php echo e(route('item-category.create')); ?>"
                                        class="nav-link <?php echo e(request()->routeIs(['item-category.create']) ? 'active' : ''); ?>">
                                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                        <p>Add Category</p>
                                    </a>
                                </li>
                            <?php endif; ?>

                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory-group_index')): ?>
                                <li class="nav-item"><a href="<?php echo e(route('item-category.index')); ?>"
                                        class="nav-link <?php echo e(request()->routeIs(['item-category.index']) ? 'active' : ''); ?>">
                                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                        <p>Categories</p>
                                    </a>
                                </li>
                            <?php endif; ?>

                        </ul>
                    </li>

                    <li class="nav-item <?php echo e(request()->routeIs(['item.create', 'item.index']) ? 'menu-open' : ''); ?>">
                        <a href="#" class="nav-link">

                            <i class="ml-3 fa-solid fa-gopuram" style="font-size: 10px"></i>
                            <p> Item
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview ml-2">

                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory_create')): ?>
                                <li class="nav-item">
                                <li class="nav-item">
                                    <a href="<?php echo e(route('item.create')); ?>"
                                        class="nav-link <?php echo e(request()->routeIs(['item.create']) ? 'active' : ''); ?>">
                                        <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                        <p>Add Item</p>
                                    </a>
                                </li>
                        </li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory_index')): ?>
                        <li class="nav-item"><a href="<?php echo e(route('item.index')); ?>"
                                class="nav-link <?php echo e(request()->routeIs(['item.index']) ? 'active' : ''); ?>">
                                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>Items</p>
                            </a></li>
                    <?php endif; ?>

                </ul>
            </li>
        <?php endif; ?>

        <li class="nav-item">
            <a href="<?php echo e(route('requisition.pending')); ?>"
                class="nav-link <?php echo e(request()->routeIs(['requisition.pending']) ? 'active' : ''); ?>">
                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                <p>Pending Requisitions</p>
            </a>
        </li>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('get-inventory-list')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('purchase.index')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['purchase*', 'serial-no-add']) ? 'active' : ''); ?>">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Purchases</p>
                </a>
            </li>
        <?php endif; ?>

        <li class="nav-item">
            <a href="<?php echo e(route('requisition.index')); ?>"
                class="nav-link <?php echo e(request()->routeIs(['requisition.index']) ? 'active' : ''); ?>">
                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                <p>Requisitions</p>
            </a>
        </li>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('get-inventory-list')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('item-return.index')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['item-return*']) ? 'active' : ''); ?>">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Return Items</p>
                </a>
            </li>

            <li class="nav-item">
                <a href="<?php echo e(route('stock.index')); ?>"
                    class="nav-link <?php echo e(request()->routeIs(['stock.index', 'show-serial-no']) ? 'active' : ''); ?>">
                    <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                    <p>Stocks</p>
                </a>
            </li>

            <li class="nav-item <?php echo e(request()->routeIs(['supplier*']) ? 'menu-open' : ''); ?>">
                <a href="#" class="nav-link">
                    <i class="ml-3 fa-solid fa-cubes" ></i>
                    <p> Supplier
                        <i class="fas fa-angle-left right"></i>
                    </p>
                </a>
                <ul class="nav nav-treeview ml-2">

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier_create')): ?>
                        <li class="nav-item"><a href="<?php echo e(route('supplier.create')); ?>"
                                class="nav-link <?php echo e(request()->routeIs(['supplier.create']) ? 'active' : ''); ?>">
                                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>Add Supplier</p>
                            </a></li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('supplier_index')): ?>
                        <li class="nav-item"><a href="<?php echo e(route('supplier.index')); ?>"
                                class="nav-link <?php echo e(request()->routeIs(['supplier.index']) ? 'active' : ''); ?>">
                                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>Suppliers</p>
                            </a></li>
                    <?php endif; ?>
                </ul>
            </li>

            <li class="nav-item <?php echo e(request()->routeIs(['unit*']) ? 'menu-open' : ''); ?>">
                <a href="#" class="nav-link">
                    <i class="fa fa-circle nav-icon" style="font-size: 10px"></i>
                    <p> Unit
                        <i class="fas fa-angle-left right"></i>
                    </p>
                </a>
                <ul class="nav nav-treeview ml-2">

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('unit_create')): ?>
                        <li class="nav-item"><a href="<?php echo e(route('unit.create')); ?>"
                                class="nav-link <?php echo e(request()->routeIs(['unit.create']) ? 'active' : ''); ?>">
                                <i class="ml-2 fa fa-circle nav-icon" style="font-size: 6px !important"></i>
                                <p>Add Unit</p>
                            </a></li>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('unit_index')): ?>
                        <li class="nav-item"><a href="<?php echo e(route('unit.index')); ?>"
                                class="nav-link <?php echo e(request()->routeIs(['unit.index']) ? 'active' : ''); ?>">
                                <i class="ml-2 fa fa-circle nav-icon " style="font-size: 6px !important"></i>
                                <p>Units</p>
                            </a></li>
                    <?php endif; ?>
                </ul>
            </li>
        <?php endif; ?>
        </ul>
        </li>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /var/www/html/airnet/radius-circle/resources/views/layout/leftsidebar/store.blade.php ENDPATH**/ ?>