<nav class="sb-topnav navbar navbar-expand navbar-dark ">
    
    <a class="navbar-brand" href="<?=base_url()?>"><img src="<?=base_url('assets/img/logo3.png')?>" alt="<?=$title;?>" style="height: 40px;" title="<?=$title;?>"><sup><?=VER?></sup></a>
   
    <button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button>

    <?php 
    $license = expireDate();
    ?>

    <div class="d-none d-md-inline-block form-inline ms-auto me-0 me-md-3 my-2 my-md-0 
    <?php if ($license): ?> 
        bg-<?= esc($license['status']) ?> 
        text-center
    <?php endif; ?>">

    <?= $license['desc']?>


    </div>



    <ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
        <?php
            $useraccess = return_value('usr_access', 'usr_uid', session()->get(TITLE . '_usr_uid'), 'tbl_user');
            if($useraccess == 1) 
        { ?>
        <li class="nav-item dropdown">
            <a class="nav-link  dropdown-toggle" href="#" data-bs-toggle="dropdown"> <i class="fa fa-gear fa-fw"></i> </a>
            <ul class="dropdown-menu dropdown-menu-end">
              <li><a class="dropdown-item" href="#"> User Role &raquo; </a>
                 <ul class="submenu submenu-left dropdown-menu">
                    <li><a class="dropdown-item" href="<?=base_url()?>settings/role/role_group">Role Group</a></li>
                    <li><a class="dropdown-item" href="<?=base_url()?>settings/role/role_right">Role Right</a></li>
                    
                 </ul>
              </li>
              <li><a class="dropdown-item" href="<?=base_url()?>license/">License</a></li>
              <li><a class="dropdown-item" href="<?=base_url()?>license/orginfo">Organization</a></li>
              <li><a class="dropdown-item" href="<?=base_url()?>settings/email">Email Settings</a></li>
              
            <?php 
                $emp_id = return_value('usr_emp_id', 'usr_uid', $_SESSION[TITLE .'_usr_uid'], 'tbl_user');
                if ($emp_id == '000000') 
                {
            ?>
              <li><a class="dropdown-item" href="<?=base_url()?>settings/menu/sidebar_menu">Sidebar Menu</a></li>
              <li><hr class="dropdown-divider" /></li>
              
              <li><a class="dropdown-item" href="#"> SMS &raquo; </a>
                 <ul class="submenu submenu-left dropdown-menu">
                    <li><a class="dropdown-item" href="<?=base_url()?>settings/sms">Send SMS</a></li>
                    <li><a class="dropdown-item" href="<?=base_url()?>settings/sms/sms_api">SMS API Settings</a></li>
                 </ul>
              </li>
              
              <li><hr class="dropdown-divider" /></li>
              <li><a class="dropdown-item" href="<?=base_url()?>settings/prostatus/product_status">Product Status</a></li>
              <li><a class="dropdown-item" href="<?=base_url()?>settings/progroup/product_group">Product Group</a></li>
              <li><a class="dropdown-item" href="<?=base_url()?>settings/users/deglist">Designations</a></li>
              <li><hr class="dropdown-divider" /></li>
              <li><a class="dropdown-item" href="#"> Settings &raquo; </a>
                 <ul class="submenu submenu-left dropdown-menu">
                    <li><a class="dropdown-item" href="<?=base_url()?>settings/sms">Default Location</a></li>
                    <li><a class="dropdown-item" href="<?=base_url()?>environment">Environment</a></li>
                 </ul>
              </li>
              <?php 
                }
              ?>
            </ul>
        </li>
    <?php } ?>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
            <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
                <li><a class="dropdown-item" href="<?=base_url()?>admin/users/profile">Profile</a></li>   
                <li><a class="dropdown-item" href="#!">Activity Log</a></li>
                <li><hr class="dropdown-divider" /></li>
                <li><a class="dropdown-item" href="<?=base_url()?>login/logout">Logout</a></li>
            </ul>
        </li>
    </ul>
    
</nav>