<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('manage_medicine'); ?>
            </h6>
        </div>
        <ul class="list-group list-group-flush">
            <?php if (has_permission(VIEW, 'reagent', 'medicine')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'category' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'category' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('reagent/medicine/category'); ?>"><i class="fa fa-medkit" aria-hidden="true"></i> <?php echo $this->lang->line('manage_category'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'reagent', 'medicine')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'type' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'type' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('reagent/medicine/type'); ?>"><i class="fa fa-user-md" aria-hidden="true"></i> <?php echo $this->lang->line('manage_type'); ?></a>
                </li>
            <?php } ?>

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

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

            <?php if (has_permission(VIEW, 'reagent', 'medicine')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'unit' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'unit' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('reagent/medicine/unit'); ?>"><i class="fa fa-balance-scale" aria-hidden="true"></i> <?php echo $this->lang->line('manage_unit'); ?></a>
                </li>
            <?php } ?>

            <?php if (has_permission(VIEW, 'reagent', 'medicine')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'import' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_class() == 'medicine' && $this->router->fetch_method() == 'import' ? 'class="text-white"' : ''; ?> href="#"><i class="fa fa-upload" aria-hidden="true"></i> <?php echo $this->lang->line('import_medicine'); ?></a>
                </li>
            <?php } ?>

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

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