  <?php
    $uri = $this->uri->segment(3);
    $all_data = $_SESSION['login'];

    foreach($all_data as $data){
      $name = $data['name'];
    }
  ?>
  
  <!-- =============================================== -->

  <!-- Left side column. contains the sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="<?php echo base_url(); ?>assets/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><?= $name; ?></p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      <ul class="sidebar-menu" data-widget="tree">
        <li <?php if($uri == ''){echo "class='active'";} ?> >
          <a href="<?php echo base_url(); ?>index.php/user/Dashboard">
            <i class="fa fa-dashboard"></i> <span>Dashboard</span>
          </a>
        </li>
        <li <?php if($uri == 'show_order'){echo "class='active'";} ?> >
          <a href="<?php echo base_url(); ?>index.php/user/Order/show_order">
            <i class="fa fa-shopping-cart"></i> <span>Order</span>
          </a>
        </li>
        <li <?php if($uri == 'front_countdown'){echo "class='active'";} ?> >
          <a href="<?php echo base_url(); ?>index.php/user/Dashboard/front_countdown">
            <i class="fa fa-clock-o"></i> <span>Front Countdown</span>
          </a>
        </li>

        <li class="treeview <?php if($uri == 'insertPortfolio' || $uri == 'showPortfolio'){echo "active";} ?>">
          <a href="#">
            <i class="fa fa-file"></i>
            <span>Portfolio</span>
            <span class="pull-right-container">
              <span class="fa fa-angle-left pull-right"></span>
            </span>
          </a>
          <ul class="treeview-menu">
            <li <?php if($uri == 'insertPortfolio'){echo "class='active'";} ?> ><a href="<?php echo base_url(); ?>index.php/user/Portfolio/insertPortfolio"><i class="fa fa-circle-o"></i> Add Portfolio</a></li>
            <li <?php if($uri == 'showPortfolio'){echo "class='active'";} ?>><a href="<?php echo base_url(); ?>index.php/user/Portfolio/showPortfolio"><i class="fa fa-circle-o"></i> Portfolio List</a></li>
          </ul>
        </li>

        <li class="treeview <?php if($uri == 'insertLogo' || $uri == 'showLogo'){echo "active";} ?> ">
          <a href="#">
            <i class="fa fa-image"></i>
            <span>Client & Partner</span>
            <span class="pull-right-container">
              <span class="fa fa-angle-left pull-right"></span>
            </span>
          </a>
          <ul class="treeview-menu">
            <li <?php if($uri == 'insertLogo'){echo "class='active'";} ?>><a href="<?php echo base_url(); ?>index.php/user/Logo/insertLogo"><i class="fa fa-circle-o"></i> Add Logo</a></li>
            <li <?php if($uri == 'showLogo'){echo "class='active'";} ?> ><a href="<?php echo base_url(); ?>index.php/user/logo/showLogo"><i class="fa fa-circle-o"></i> Logo List</a></li>
          </ul>
        </li>
        <li class="treeview <?php if($uri == 'insertSoftware' || $uri == 'showSoftware'){echo "active";} ?> ">
          <a href="#">
            <i class="fa fa-cogs"></i>
            <span>Software</span>
            <span class="pull-right-container">
              <span class="fa fa-angle-left pull-right"></span>
            </span>
          </a>
          <ul class="treeview-menu">
            <li <?php if($uri == 'insertSoftware' ){echo "class='active'";} ?>><a href="<?php echo base_url(); ?>index.php/user/Software/insertSoftware"><i class="fa fa-circle-o"></i> Add Software</a></li>
            <li <?php if($uri == 'showSoftware'){echo "class='active'";} ?> ><a href="<?php echo base_url(); ?>index.php/user/Software/showSoftware"><i class="fa fa-circle-o"></i> Software List</a></li>
          </ul>
        </li>

        <li class="treeview <?php if($uri == 'insertWebPackage' || $uri == 'showWebPackage'){echo "active";} ?> ">
          <a href="#">
            <i class="fa fa-globe"></i>
            <span>Web Packages</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li <?php if($uri == 'insertWebPackage'){echo "class='active'";} ?>><a href="<?php echo base_url(); ?>index.php/user/WebPackage/insertWebPackage"><i class="fa fa-circle-o"></i> Add Package</a></li>
            <li <?php if($uri == 'showWebPackage'){echo "class='active'";} ?> ><a href="<?php echo base_url(); ?>index.php/user/WebPackage/showWebPackage"><i class="fa fa-circle-o"></i> Package List</a></li>
          </ul>
        </li>

        <li class="treeview <?php if($uri == 'insertHostingPackage' || $uri == 'showHostingPackage'){echo "active";} ?> ">
          <a href="#">
            <i class="fa fa-ioxhost"></i>
            <span>Other Packages</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li <?php if($uri == 'insertHostingPackage'){echo "class='active'";} ?>><a href="<?php echo base_url(); ?>index.php/user/HostingPackage/insertHostingPackage"><i class="fa fa-circle-o"></i> Add Package</a></li>
            <li <?php if($uri == 'showHostingPackage'){echo "class='active'";} ?> ><a href="<?php echo base_url(); ?>index.php/user/HostingPackage/showHostingPackage"><i class="fa fa-circle-o"></i> Package List</a></li>
          </ul>
        </li>

        <li class="treeview <?php if($uri == 'insertSmsMarketingPackage' || $uri == 'showSmsMarketingPackage'){echo "active";} ?> ">
          <a href="#">
            <i class="fa fa-envelope-o"></i>
            <span>SMS Marketing</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li <?php if($uri == 'insertSmsMarketingPackage'){echo "class='active'";} ?> ><a href="<?php echo base_url(); ?>index.php/user/SmsMarketing/insertSmsMarketingPackage"><i class="fa fa-circle-o"></i> Add Package</a></li>
            <li <?php if($uri == 'showSmsMarketingPackage'){echo "class='active'";} ?>><a href="<?php echo base_url(); ?>index.php/user/SmsMarketing/showSmsMarketingPackage"><i class="fa fa-circle-o"></i> Package List</a></li>
          </ul>
        </li>

      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- =============================================== -->