<?php
$session_data = $this->session->userdata('session_data');
 $role = $session_data['role'];
$profileImage = $session_data['profileImage'];
$name = $session_data['name'];
?>
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-secondary sidebar sidebar-dark accordion" id="accordionSidebar">

    <!-- Sidebar - Brand -->
    <a class="sidebar-brand d-flex align-items-center justify-content-center" 
   
    href="#">
    
    <div class="sidebar-brand-icon">
            <!-- <img src="<?=base_url()?>assets/theme/img/Logo.png" style="width:80px;" alt="YahLove" /> -->
            <?php if($this->session->userdata('selectedpanel')=="blueline"){ ?>
            <h5>BLUE LINE Admin Panel</h5>
            <?php } ?>
            <?php if($this->session->userdata('selectedpanel')=="letts"){ ?>
            <h5>Letts Of London </h5>
            <?php } ?>
            <?php if($this->session->userdata('selectedpanel')=="filofax"){ ?>
            <h5>Filo Fax Admin Panel</h5>
            <?php } ?>
       
        </div>
    </a>

    <!-- Divider -->
    <hr class="sidebar-divider my-0">

    <!-- Nav Item - Dashboard -->
   <?php if($this->session->userdata('selectedpanel')=="blueline"){ ?>
    <li class="nav-item <?php echo activate_menu('dashboard'); ?>">
        <a class="nav-link" href="<?=base_url()?>dashboard">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>BlueLine Dashboard </span></a>
    </li>

    <!-- Divider -->
    <hr class="sidebar-divider">

    <li class="nav-item <?php echo activate_menu('customer'); ?>">
        <a class="nav-link" href="<?=base_url()?>customer">
            <i class="fas fa-fw fa-users"></i>
            <span>BlueLine Users</span></a>
    </li>


    
    <hr class="sidebar-divider my-0">
    <?php } ?>

    <!-- Nav Item - Dashboard -->
    <?php if($this->session->userdata('selectedpanel')=="filofax"){ ?>
    <li class="nav-item <?php echo activate_menu('filofaxdashboard'); ?>">
        <a class="nav-link" href="<?=base_url()?>dashboard/filofaxdashboard">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>FiloFax Dashboard</span></a>
    </li>

    <!-- Divider -->
    <hr class="sidebar-divider">

    <li class="nav-item <?php echo activate_menu('filofaxcusyomer'); ?>">
        <a class="nav-link" href="<?=base_url()?>customer/filofaxcusyomer">
            <i class="fas fa-fw fa-users"></i>
            <span>FiloFax Users</span></a>
    </li>

    <hr class="d-none sidebar-divider">
    <hr class="sidebar-divider my-0">
    <?php } ?>

    <!-- Nav Item - Dashboard -->
    <?php if($this->session->userdata('selectedpanel')=="letts"){ ?>
    <li class="nav-item <?php echo activate_menu('lettsdashboard'); ?>">
        <a class="nav-link" href="<?=base_url()?>dashboard/lettsdashboard">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>Letts Of London Dashboard</span></a>
    </li>

    <!-- Divider -->
    <hr class="sidebar-divider">

    <li class="nav-item <?php echo activate_menu('lettscusyomer'); ?>">
        <a class="nav-link" href="<?=base_url()?>customer/lettscusyomer">
            <i class="fas fa-fw fa-users"></i>
            <span>Letts Of London Users</span></a>
    </li>

    <hr class="d-none sidebar-divider">
<?php } ?>

    <li class="nav-item <?php echo activate_menu('site/Panels'); ?>">
        <a class="nav-link" href="<?=base_url()?>Site">
            <i class="fas fa-fw fa-users"></i>
            <span>Pannels</span></a>
    </li>
    <?php if($role=="superadmin"){?>

    <hr class=" sidebar-divider">


    <li class=" nav-item <?php echo activate_menu('admin'); ?>">
        <a class="nav-link" href="<?=base_url()?>admin">
            <i class="fas fa-fw fa-users"></i>
            <span>Admin List</span></a>
    </li>
    <?php } ?>

    <li class="d-none nav-item <?php echo activate_menu('dashboard/category'); ?>">
        <a class="nav-link" href="<?=base_url()?>dashboard/category">
            <i class="fas fa-fw fa-users"></i>
            <span>Categories</span></a>
    </li>


    <!-- Divider -->
    <hr class="sidebar-divider d-none d-md-block">

    <!-- Sidebar Toggler (Sidebar) -->
    <div class="text-center d-none d-md-inline">
        <button class="rounded-circle border-0" id="sidebarToggle"></button>
    </div>

    <!-- Sidebar Message -->
    <!-- <div class="sidebar-card d-none d-lg-flex">
        <img class="sidebar-card-illustration mb-2" src="img/undraw_rocket.svg" alt="...">
        <p class="text-center mb-2"><strong>SB Admin Pro</strong> is packed with premium features, components, and more!</p>
        <a class="btn btn-success btn-sm" href="https://startbootstrap.com/theme/sb-admin-pro">Upgrade to Pro!</a>
    </div> -->

</ul>
<!-- End of Sidebar -->