<?php
$request_dir = $_SERVER['SERVER_NAME'] . dirname($_SERVER['REQUEST_URI']);

if($data['level'] !== 'reseller'){
$mesg = '<li class="nav-item">
<a class="nav-link" href="changepass.php">Upgrade Your Account</a>
</li>
<li class="nav-item">
<a class="nav-link" href="changepass.php">Commission Rates</a>
</li>
';     
                                          
}else{
$mesg = '<li class="nav-item">
<a class="nav-link" href="changepass.php">Activate Your Account</a>
</li>
<li class="nav-item">
<a class="nav-link" href="changepass.php">Commission Rates/Prices</a>
</li>';  }?>

 <div class="nav-left-sidebar sidebar-dark">
            <div class="menu-list">
                <nav class="navbar navbar-expand-lg navbar-light">
                    <a class="d-xl-none d-lg-none" href="#">Dashboard</a>
                    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarNav">
                        <ul class="navbar-nav flex-column">
                            <li class="nav-divider">
                              USER MENU  
                            </li>
                            <li class="nav-item ">
                                <a class="nav-link active" href="changepass.php" ><i class="fa fa-fw fa-user-circle"></i>Dashboard<span class="badge badge-success">6</span></a>
                                
                            </li>


  <li class="nav-item">
                                <a class="nav-link" href="#" data-toggle="collapse" aria-expanded="false" data-target="#submenu-55" aria-controls="submenu-55"><i class="fa fa-fw fa-user"></i>My Account</a>
                                <div id="submenu-55" class="collapse submenu" style="">
                                    <ul class="nav flex-column">
                                        <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Credit Wallet</a>
                                        </li>
 <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Share Wallet Funds</a>
                                        </li>

 <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Send Money To Bank</a>
                                        </li>
                                    <!-- <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Convert Airtime2cash</a>
                                        </li>-->
                                      
                                        
                                        <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Submit Bank Payment Notification</a>
                                        </li>

                                       
                                        
                                         
                                    </ul>
                                </div>
                            </li>

                         
                          
                            <li class="nav-item">
                                <a class="nav-link" href="#" data-toggle="collapse" aria-expanded="false" data-target="#submenu-7" aria-controls="submenu-7"><i class="fas fa-fw fa-hand-holding-usd"></i>Reseller<span class="badge badge-secondary">New</span></a>
                                <div id="submenu-7" class="collapse submenu" style="">
                                    <ul class="nav flex-column">
                                      
                                       <?php echo $mesg; ?>
                                                                            
                                    </ul>
                                </div>
                            </li>



 <li class="nav-item">
                                <a class="nav-link" href="#" data-toggle="collapse" aria-expanded="false" data-target="#submenu-71" aria-controls="submenu-71"><i class="fas fa-code"></i>Developers/API<span class="badge badge-secondary">New</span></a>
                                <div id="submenu-71" class="collapse submenu" style="">
                                    <ul class="nav flex-column">
                                      <li class="nav-item"> <a class="nav-link" href="changepass.php">Create API Key</a></li> 
                                    
                                  <li class="nav-item"> <a class="nav-link" href="changepass.php">API Documentation</a></li> 
        
                                                                
                                    </ul>
                                </div>
                            </li>



                            <li class="nav-item">
                                <a class="nav-link" href="#" data-toggle="collapse" aria-expanded="false" data-target="#submenu-8" aria-controls="submenu-8"><i class="fas fa-fw fa-users"></i>Refer & Earn Money</a>
                                <div id="submenu-8" class="collapse submenu" style="">
                                    <ul class="nav flex-column">
                                        <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">My Earnings</a>
                                        </li>
                                      
                                   
                                    </ul>
                                </div>
                            </li>


                            <li class="nav-item">
                                <a class="nav-link" href="#" data-toggle="collapse" aria-expanded="false" data-target="#submenu-9" aria-controls="submenu-9"><i class="fas fa-fw fa-wrench"></i>Settings</a>
                                <div id="submenu-9" class="collapse submenu" style="">
                                    <ul class="nav flex-column">
                                        <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Change Password</a>
                                        </li>
                                        
                                        
                                         <li class="nav-item">
                                            <a class="nav-link" href="changepass.php">Manage Profile</a>
                                        </li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="logout" ><i class="fas fa-f fa-power-off"></i>Logout</a>
                                
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>
