<div class="col-lg-3">
    <div class="card">
        <div class="card-header d-flex justify-content-between">
            <h6 class="card-header d-flex align-items-center">
                <i class="fa fa-medkit font-30 mr-10"></i>
                <?php echo $this->lang->line('pharmacy'); ?> <?php echo $this->lang->line('list'); ?>
            </h6>
        </div>
        <ul class="list-group list-group-flush">
            <?php if (has_permission(VIEW, 'pharmacy', 'sale')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'sale' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'sale' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('pharmacy/sale'); ?>"><i class="fa fa-balance-scale" aria-hidden="true"></i> <?php echo $this->lang->line('sale'); ?></a>
                </li>
            <?php } ?>
            <?php if (has_permission(VIEW, 'pharmacy', 'purchase')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'purchase' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'purchase' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('pharmacy/purchase'); ?>"><i class="fa fa-cart-plus" aria-hidden="true"></i> <?php echo $this->lang->line('purchase'); ?></a>
                </li>
            <?php } ?>
            <?php if (has_permission(VIEW, 'pharmacy', 'refund')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'refund' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'refund' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('pharmacy/refund'); ?>"><i class="fa fa-undo" aria-hidden="true"></i> <?php echo $this->lang->line('refund'); ?></a>
                </li>
            <?php } ?>
            <?php if (has_permission(VIEW, 'pharmacy', 'medicine')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'medicine' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'medicine' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('pharmacy/medicine'); ?>"><i class="fa fa-medkit" aria-hidden="true"></i> <?php echo $this->lang->line('medicine'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'pharmacy', 'manufacturer')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'manufacturer' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'manufacturer' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('pharmacy/manufacturer'); ?>"><i class="fa fa-industry" aria-hidden="true"></i> <?php echo $this->lang->line('manufacturer'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'pharmacy', 'supplier')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'supplier' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'supplier' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('pharmacy/supplier'); ?>"><i class="fa fa-users" aria-hidden="true"></i> <?php echo $this->lang->line('supplier'); ?></a>
                </li>
            <?php } ?>
        </ul>
    </div>
</div>