 <aside class="main-sidebar">
    <section class="sidebar">
        <div class="user-panel">
            <div class="image">
                <img src="<?=base_url($this->session->userdata('profile_pic'))?>" onerror="this.src='<?=base_url("assets/images/user_avatar.jpg")?>'" class="user-image left-sid" alt="User Image">
            </div>
            <div class="info">
                <p><?php echo $this->session->userdata('logged_in_admin')['username']; ?></p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
            <div class="clear">

            </div>
        </div>
        <ul class="sidebar-menu">
            <li><a href="<?= base_url('Dashboard') ?>">
              <img src="../assets/images/m1.png" />
              <span>Dashboard</span></a>
            </li>
            <li><a href="<?= base_url('Tag/listTags') ?>">
              <img src="../assets/images/m2.png" />
              <span>Tag Management</span></a>
            </li>
            <li class="treeview">
                <a href="#">
                    <img src="../assets/images/m3.png" />
                        <span>Host Categories</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="<?= base_url('Host/addHostCategory') ?>">
                            <i class="fa fa-circle-o text-aqua"></i>
                            Add Host Category
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url('Host/listHostCategory') ?>">
                            <i class="fa fa-circle-o text-aqua"></i>
                            View Host Category
                        </a>
                    </li>
                </ul>
            </li>
            <li><a href="<?= base_url('Region/listRegion') ?>">
              <img src="../assets/images/m4.png" />
              <span>Region Management</span></a>
            </li>
            <li><a href="<?= base_url('Category/listCategory') ?>">
              <img src="../assets/images/m5.png" />
              <span>Category Management</span></a>
            </li>
            <li class="treeview">
                <a href="#">
                  <img src="../assets/images/m6.png" />
                        <span>Venue Management</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="<?= base_url('Venue/addVenues') ?>">
                            <i class="fa fa-circle-o text-aqua"></i>
                            Add Venue
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url('Venue/listVenues') ?>">
                            <i class="fa fa-circle-o text-aqua"></i>
                            View Venue
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <img src="../assets/images/m3.png" />
                        <span>Event Management</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="<?= base_url('Event/addEvent') ?>">
                            <i class="fa fa-circle-o text-aqua"></i>
                            Add Event
                        </a>
                    </li>
                    <li>
                        <a href="<?= base_url('Event/listEvents') ?>">
                            <i class="fa fa-circle-o text-aqua"></i>
                            View Events
                        </a>
                    </li>
                </ul>
            </li>
            <?php if($this->session->userdata['user_type'] == 1){ ?>
                <li class="treeview">
                    <a href="#">
                      <img src="../assets/images/m6.png" />
                            <span>Provider Management</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="<?= base_url('Provider/addProvider') ?>">
                                <i class="fa fa-circle-o text-aqua"></i>
                                Add Provider
                            </a>
                        </li>
                        <li>
                            <a href="<?= base_url('Provider/viewProviders') ?>">
                                <i class="fa fa-circle-o text-aqua"></i>
                                View Provider
                            </a>
                        </li>
                    </ul>
                </li>
                <!-- <li class="treeview">
                    <a href="#">
                        <i class="fa fa-bars" aria-hidden="true"></i>
                            <span>Customer Management</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="<?= base_url('Customer/addCustomer') ?>">
                                <i class="fa fa-circle-o text-aqua"></i>
                                Add Customer
                            </a>
                        </li>
                        <li>
                            <a href="<?= base_url('Customer/viewCustomers') ?>">
                                <i class="fa fa-circle-o text-aqua"></i>
                                View Customer
                            </a>
                        </li>
                    </ul>
                </li> -->
                <li><a href="<?= base_url('Settings') ?>">
                    <img src="../assets/images/m7.png" />
                    </i><span>Settings</span></a>
                </li>
            <?php } ?>
        </ul>
    </section>
</aside>
