<style>
    .card .nav.flex-column:not(.nav-sidebar)>li {
    border-bottom: 1px solid rgba(0,0,0,.125);
    margin: 0
}

.card .nav.flex-column:not(.nav-sidebar)>li:last-of-type {
    border-bottom: 0
}

.card.height-control .card-body {
    max-height: 300px;
    overflow: auto
}

.card .border-right {
    border-right: 1px solid rgba(0,0,0,.125)
}.m-1 {
    margin: .25rem !important;
}

.flex-column {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
}
    .card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
}

.card-header {
    background-color: rgba(0,0,0,.03);
    border-bottom: 0 solid rgba(0,0,0,.125);
    border-radius: 0.25rem 0.25rem 0 0;
}

.card-body {
    padding: 1.25rem;
}

.nav-item {
    margin-bottom: 0.75rem;
}

.nav-link {
    color: #333;
}

.nav-link:hover {
    color: #007bff;
    text-decoration: none;
}

.thumb {
    display: flex;
    align-items: center;
}

.thumb i {
    margin-right: 0.5rem;
}
.nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
</style>
<?php
// Get CodeIgniter super object
$CI = &get_instance();
?>
<div class="card settings-card no-print"> 
    <div class="card-body">
    <ul class="nav flex-column nav-pills m-1">  
    <?php if ($CI->permissions('profit_report')) { ?>
              <li class="report-profit-loss-active-li"><a href="<?php echo $base_url; ?>reports/profit_loss"><i class="fas fa-chart-line fa-lg text-danger"></i>

                  <span class="ml-5"><?= $this->lang->line('profit_and_loss_report'); ?></span></a></li>
            <?php } ?>

            <?php if ($CI->permissions('purchase_report')) { ?>
              <li class="report-purchase-active-li"><a href="<?php echo $base_url; ?>reports/purchase"><i class="fas fa-shopping-cart fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('purchase_report'); ?></span></a></li>
            <?php } ?>
            <?php if ($CI->permissions('purchase_return_report')) { ?>
              <li class="report-purchase-return-active-li"><a href="<?php echo $base_url; ?>reports/purchase_return"><i class="fas fa-undo fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('purchase_return_report'); ?></span></a></li>
            <?php } ?>

            <?php if ($CI->permissions('purchase_payments_report')) { ?>
              <li class="report-purchase-payments-active-li"><a href="<?php echo $base_url; ?>reports/purchase_payments"><i class="fas fa-money-check-alt fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('purchase_payments_report'); ?></span></a></li>
            <?php } ?>

            <?php if ($CI->permissions('item_sales_report')) { ?>
              <li class="report-sales-item-active-li"><a href="<?php echo $base_url; ?>reports/item_sales"> <i class="fas fa-cube fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('item_sales_report'); ?></span></a></li>
            <?php } ?>
            <?php if ($CI->permissions('item_purchase_report')) { ?>
              <li class="report-purchase-item-active-li"><a href="<?php echo $base_url; ?>reports/item_purchase"><i class="fas fa-shopping-cart fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('item_purchase_report'); ?></span><span class="pull-right-container">
                    <span class="label label-success pull-right">New</span>
                  </span></a></li>
            <?php } ?>
            <?php if ($CI->permissions('sales_report')) { ?>
              <li class="report-sales-active-li"><a href="<?php echo $base_url; ?>reports/sales"> <i class="fas fa-file-alt fa-lg text-danger"></i> <span class="ml-5"><?= $this->lang->line('sales_report'); ?></span></a>
              </li>
            <?php } ?>
            <?php if ($CI->permissions('sales_return_report')) { ?>
              <li class="report-sales-return-active-li"><a href="<?php echo $base_url; ?>reports/sales_return"><i class="fas fa-undo fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('sales_return_report'); ?></span></a></li>
            <?php } ?>

            <?php if ($CI->permissions('sales_payments_report')) { ?>
              <li class="report-sales-payments-active-li"><a href="<?php echo $base_url; ?>reports/sales_payments"><i class="fas fa-money-check-alt fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('sales_payments_report'); ?></span></a></li>
            <?php } ?>


            <?php if ($CI->permissions('stock_report')) { ?>
              <li class="report-stock-active-li"><a href="<?php echo $base_url; ?>reports/stock"><i class="fas fa-boxes fa-lg text-danger"></i> <span class="ml-5"><?= $this->lang->line('stock_report'); ?></span>
                </a></li>
            <?php } ?>

            <?php if ($CI->permissions('expense_report')) { ?>
              <li class="report-expense-active-li"><a href="<?php echo $base_url; ?>reports/expense"><i class="fas fa-receipt fa-lg text-danger"></i> <span class="ml-5"><?= $this->lang->line('expense_report'); ?></span></a>
              </li>
            <?php } ?>





            <?php if ($CI->permissions('expired_items_report')) { ?>
              <li class="report-expired-items-active-li"><a href="<?php echo $base_url; ?>reports/expired_items"><i class="fas fa-calendar-times fa-lg text-danger"></i>
                  <span class="ml-5"><?= $this->lang->line('expired_items_report'); ?></span></a></li>
            <?php } ?>
          </ul>
            </div>
            </div> 