<aside class="main-sidebar elevation-1 sidebar-dark-warning">
    <a href="<?= base_url(); ?>/dashboard" class="brand-link">
        <!-- <img src="<?= base_url() ?>assets/uploads/Logo1.png" class="brand-imag" style="float: left; max-height: 30px; width: auto; "> -->
        <span class="brand-text font-weight-bold">RUGEL INTERNATIONAL</span>
    </a>
    <div class="sidebar">
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-item">
                    <a href="<?= base_url(); ?>dashboard" class="nav-link <?php echo activate_menu('dashboard'); ?>">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>
                            Dashboard
                        </p>
                    </a>
                </li>

                <li class="nav-item  has-treeview <?php echo ((activate_menu('companies')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('editcompany')) == 'active') ? 'menu-open' : '' ?>">
                    <a href="#" class="nav-link <?php echo activate_menu('companies'); ?><?php echo activate_menu('editcompany'); ?>">
                        <i class="nav-icon fas fa-user-secret"></i>
                        <p>
                            Companies
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>companies" class="nav-link <?php echo activate_menu('companies'); ?><?php echo activate_menu('editcompany'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>Company Management</p>
                            </a>
                        </li>

                    </ul>
                </li>

                <li class="nav-item  has-treeview <?php echo ((activate_menu('shippers')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('editshipper')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addshipper')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu2('shipperdetails')) == 'active') ? 'menu-open' : '' ?>">
                    <a href="#" class="nav-link <?php echo activate_menu('shippers'); ?><?php echo activate_menu('editshipper'); ?><?php echo activate_menu2('shipperdetails'); ?>">
                        <i class="nav-icon fas fa-user-minus"></i>
                        <p>
                            Shippers
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>shippers" class="nav-link <?php echo activate_menu('shippers'); ?><?php echo activate_menu('editshipper'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>Shipper Management</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>shippers/addshipper" class="nav-link <?php echo activate_menu('addshipper'); ?><?php echo activate_menu('addshipper'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>Add Shipper</p>
                            </a>
                        </li>

                    </ul>
                </li>
                <li class="nav-item  has-treeview <?php echo ((activate_menu('agent')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('editagent')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addagent')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu2('agentdetails')) == 'active') ? 'menu-open' : '' ?>">
                    <a href="#" class="nav-link <?php echo activate_menu('agent'); ?><?php echo activate_menu('editshipper'); ?><?php echo activate_menu2('agentdetails'); ?>">
                        <i class="nav-icon fas fa-user-minus"></i>
                        <p>
                            Agent
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>agent" class="nav-link <?php echo activate_menu('agent'); ?><?php echo activate_menu('editshipper'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>Agent Management</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>agent/addagent" class="nav-link <?php echo activate_menu('addagent'); ?>">
                                <i class="nav-icon fas faa-plus"></i>
                                <p>Add Agent</p>
                            </a>
                        </li>

                    </ul>
                </li>
                <li class="nav-item  has-treeview <?php echo ((activate_menu('carriers')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('editcarrier')) == 'active') ? 'menu-open' : '' ?>
                <?php echo ((activate_menu('carriersadd')) == 'active') ? 'menu-open' : '' ?>

               <?php echo ((activate_menu2('carrierdetails')) == 'active') ? 'menu-open' : '' ?>">
                    <a href="#" class="nav-link <?php echo activate_menu('carriers'); ?> <?php echo activate_menu('editcarrier'); ?><?php echo activate_menu2('carrierdetails'); ?>">
                        <i class="nav-icon fas fa-user-minus"></i>
                        <p>
                            Carriers
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>carriers" class="nav-link <?php echo activate_menu('carriers'); ?><?php echo activate_menu('editcarrier'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>Carrier Management</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>carriers/carriersadd" class="nav-link <?php echo activate_menu('carriersadd'); ?><?php echo activate_menu('carriersadd'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>Add Carrier</p>
                            </a>
                        </li>

                    </ul>
                </li>
                <li class="nav-item">
                    <a href="<?= base_url(); ?>dashboard/payment" class="nav-link <?php echo activate_menu('payment'); ?>">
                        <i class="nav-icon fas  fa-money-check-alt"></i>
                        <p>
                            Charges
                        </p>
                    </a>
                </li>
                 <li class="nav-item">
                    <a href="<?= base_url(); ?>dashboard/prices" class="nav-link <?php echo activate_menu('prices'); ?>">
                        <i class="nav-icon fas  fa-money-check-alt"></i>
                        <p>
                            Prices
                        </p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?= base_url(); ?>dashboard/contractform" class="nav-link <?php echo activate_menu('contractform'); ?>">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>
                            Agreement Form
                        </p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?= base_url(); ?>settings" class="nav-link <?php echo activate_menu('settings'); ?>">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>
                            Settings
                        </p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?= base_url(); ?>settings/privacysettings" class="nav-link <?php echo activate_menu('privacysettings'); ?>">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>
                            Privacy Settings
                        </p>
                    </a>
                </li>
                <li class="nav-item  has-treeview <?php echo ((activate_menu('news')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addnews')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('editnews')) == 'active') ? 'menu-open' : '' ?>">
                    <a href="#" class="nav-link <?php echo activate_menu('news'); ?> <?php echo activate_menu('addnews'); ?><?php echo activate_menu('editnews'); ?>">
                        <i class="nav-icon fas fa-th-large"></i>
                        <p>
                            News
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <?php if (userpermission('lr_cust_list')) { ?>
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>news" class="nav-link <?php echo activate_menu('news'); ?><?php echo activate_menu('editnews'); ?>">
                                <i class="nav-icon fas faa-list"></i>
                                <p>News Management</p>
                            </a>
                        </li>
                        <?php }
                     if (userpermission('lr_cust_add')) { ?>
                        <li class="nav-item">
                            <a href="<?= base_url(); ?>news/addnews" class="nav-link <?php echo activate_menu('addnews'); ?>">
                                <i class="nav-icon fas faa-plus"></i>
                                <p>Add News</p>
                            </a>
                        </li>

                        <?php } ?>
                    </ul>
                </li>

            </ul>
        </nav>
    </div>
</aside>
<div class="content-wrapper pb-2 mb-0">