x <aside class="main-sidebar">
    <section class="sidebar">
        <div class="user-panel">
            <div class="pull-left 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="pull-left 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>
        <ul class="sidebar-menu">
            <li><a href="<?= base_url('Dashboard') ?>">
                <img src="<?=base_url("assets/images/m1.png") ?>">
                <span>Dashboard</span></a>
            </li>
            <li><a href="<?= base_url('Tag/listTags') ?>">
                <img src="<?=base_url("assets/images/m2.png") ?>">
                <span>Tag Management</span></a>
            </li>
            <li class="treeview">
                <a href="#">
                <img src="<?=base_url("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="<?=base_url("assets/images/m4.png") ?>">
                <span>Region Management</span></a>
            </li>
            <li><a href="<?= base_url('Category/listCategory') ?>">
            <img src="<?=base_url("assets/images/m5.png") ?>">
                <span>Category Management</span></a>
            </li>
            <li class="treeview">
                <a href="#">
                <img src="<?=base_url("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="<?=base_url("assets/images/m7.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="<?=base_url("assets/images/m3.png") ?>">
                        <span>Organizer 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 Organizer
                            </a>
                        </li>
                        <li>
                            <a href="<?= base_url('Provider/viewProviders') ?>">
                                <i class="fa fa-circle-o text-aqua"></i>
                                View Organizer
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <img src="<?=base_url("assets/images/m9.png") ?>">
                        <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('Booking/viewBookings') ?>">
                        <img src="<?=base_url("assets/images/m8.png") ?>">
                        <span>Booking Details</span></a>
                </li>
            <?php } ?>
                <li><a href="<?= base_url('Provider/getProviderPayDetails') ?>">
                    <img src="<?=base_url("assets/images/m2.png") ?>">
                    <span>Commission Management</span></a>
                </li>
            <?php if($this->session->userdata['user_type'] == 1){ ?>
                <li>
                    <a href="<?= base_url('CMS') ?>">
                        <img src="<?=base_url("assets/images/m5.png") ?>">
                        <span>CMS Management</span>
                    </a>
                </li>
                <li>
                    <a href="<?= base_url('Settings') ?>">
                        <i class="fa fa-wrench" aria-hidden="true">
                        </i><span>Settings</span>
                    </a>
                </li>
            <?php } ?>
        </ul>
    </section>
</aside>
