<div class="row">
    <div class="col-md-12">
        <ul class="flexMenu">

            <?php if (can(['inventory-dashboard'], ['access'])): ?>
                <li class="<?= isset($page_title) && $page_title == "Inventory Dashboard" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/dashboard') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('dashboard') ?></span>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (can(['inventory-control'], ['access'])): ?>

                <li class="<?= isset($page_title) && $page_title == "Inventory Management" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('inventory_control') ?></span>
                    </a>
                </li>

            <?php endif; ?>


            <?php if (can(['purchases-list'], ['access'])): ?>

                <li class="<?= isset($page_title) && $page_title == "Purchases" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/purchases') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('purchases_list'); ?></span>
                    </a>
                </li>
            <?php endif; ?>


            <?php if (can(['stock-request'], ['access'])): ?>
                <li class="<?= isset($page_title) && $page_title == "Stock Requests" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/stock_requests') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('stock_request'); ?></span>
                    </a>
                </li>
            <?php endif; ?>

            <?php if (can(['add-category-vendor-product'], ['access'])): ?>
                <li class="<?= isset($page_title) && $page_title == "Purchases Category" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/purchases_category') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('category'); ?></span>
                    </a>
                </li>


                <li class="<?= isset($page_title) && $page_title == "Purchases Items" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/purchases_items') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('products'); ?></span>
                    </a>
                </li>


                <li class="<?= isset($page_title) && $page_title == "Vendors" || $page_title == "Edit Vendor" ? "active" : ""; ?>">
                    <a href="<?= base_url('admin/inventory/vendors') ?>">
                        <i class="fa fa-angle-double-right"></i> <span><?= lang('vendors'); ?></span>
                    </a>
                </li>
            <?php endif; ?>

        </ul>
    </div>
</div>