
    <?php if(isset($_SESSION['j_admin']) || isset($_SESSION['j_admin'])){ ?>
            <div class="side-nav">
                <div class="side-nav-inner">
                    <ul class="side-nav-menu scrollable">
                        
						
						<li class="nav-item">
                            <a href="<?php echo $home_dir; ?>">
                                <span class="icon-holder">
                                    <i class="anticon anticon-home"></i>
                                </span>
                                <span class="title">Home</span>
                             </a>
                        </li>
                        
						
                        <li class="nav-item <?php if($i_url==$dir){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>">
                                <span class="icon-holder">
                                    <i class="anticon anticon-dashboard"></i>
                                </span>
                                <span class="title">Dashboard</span>
                             </a>
                        </li>
                        
					
                        
                        <?php if(isset($_SESSION['j_admin'])){ ?>
                      
                         
						<li class="nav-item <?php if(strpos($i_url,'settings') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>settings/">
                                <span class="icon-holder">
                                    <i class="fas fa-cog"></i>
                                </span>
                                <span class="title">Settings </span>
                             </a>
                        </li>
                        <li class="nav-item <?php if(strpos($i_url,'users') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>users">
                                <span class="icon-holder">
                                    <i class="fas fa-users"></i>
                                </span>
                                <span class="title"> Users </span>
                             </a>
                        </li>
						
						
						<?php /*
						<li class="nav-item <?php if(strpos($i_url,'report') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>report/">
                                <span class="icon-holder">
                                    <i class="fas fa-file"></i>
                                </span>
                                <span class="title">Report</span>
                             </a>
                        </li>
						
						
						<li class="nav-item <?php if(strpos($i_url,'rewards') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>rewards/">
                                <span class="icon-holder">
                                    <i class="fas fa-utensils"></i>
                                </span>
                                <span class="title">Rewards</span>
                             </a>
                        </li>
						
						<li class="nav-item <?php if(strpos($i_url,'TRADINGs/') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>TRADINGs/">
                                <span class="icon-holder">
                                    <i class="fas fa-chart-line"></i>
                                </span>
                                <span class="title">TRADINGs </span>
                             </a>
                        </li>
						
						<li class="nav-item <?php if(strpos($i_url,'TRADINGs-5h') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>TRADINGs-5h/">
                                <span class="icon-holder">
                                    <i class="fas fa-chart-line"></i>
                                </span>
                                <span class="title">TRADINGs 5H</span>
                             </a>
                        </li>
						*/ ?>
						
						<li class="nav-item <?php if(strpos($i_url,'deposits/') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>deposits/">
                                <span class="icon-holder">
                                    <i class="fas fa-exchange-alt"></i>
                                </span>
                                <span class="title">  Deposits </span>
                             </a>
                        </li>
						
						<li class="nav-item <?php if(strpos($i_url,'wallet-credit') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>wallet-credit/">
                                <span class="icon-holder">
                                    <i class="fas fa-plus"></i>
                                </span>
                                <span class="title">  Credit Wallet </span>
                             </a>
                        </li>
                        
                        <li class="nav-item <?php if(strpos($i_url,'wallet-debit') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>wallet-debit/">
                                <span class="icon-holder">
                                    <i class="fas fa-minus"></i>
                                </span>
                                <span class="title">  Debit Wallet </span>
                             </a>
                        </li>
						<?php 
						/*
                                                         
                        
						<li class="nav-item <?php if(strpos($i_url,'wallet-edit') !== false ){ echo "active_nav";  } ?>">
                            <a href="<?php echo $dir; ?>wallet-edit/">
                                <span class="icon-holder">
                                    <i class="fas fa-wallet"></i>
                                </span>
                                <span class="title">  Edit User Wallet </span>
                             </a>
                        </li>
						*/
						?>
						
						<li class="nav-item dropdown">
                            <a class="dropdown-toggle" href="javascript:void(0);">
                                <span class="icon-holder">
                                    <i class="fas fa-credit-card"></i>
                                </span>
                                <span class="title">Payments</span>
                                <span class="arrow">
                                    <i class="arrow-icon"></i>
                                </span>
                            </a>
                            <ul class="dropdown-menu">
                               <?php /*
                                <li>
                                    <a href="<?php echo $dir; ?>deposits-unpaid/">Pending Deposits </a>
                                </li> */ ?>
								 <li>
                                    <a href="<?php echo $dir; ?>payments-a/">All Payments</a>
                                </li>
                            </ul>
                        </li>
						
						
						
						<li class="nav-item dropdown">
                            <a class="dropdown-toggle" href="javascript:void(0);">
                                <span class="icon-holder">
                                    <i class="fas fa-wallet"></i>
                                </span>
                                <span class="title">Withdrawals</span>
                                <span class="arrow">
                                    <i class="arrow-icon"></i>
                                </span>
                            </a>
                            <ul class="dropdown-menu">
                                 <li>
                                    <a href="<?php echo $dir; ?>withdrawals/">All Withdrawals</a>
                                </li>
                                <li>
                                    <a href="<?php echo $dir; ?>withdrawals-pending/">Pending Withdrawals </a>
                                </li>
                                <li>
                                    <a href="<?php echo $dir; ?>confirm-transfer/"> Confirm Withdrawal </a>
                                </li>
                            </ul>
                        </li>
						
						
						<li class="nav-item dropdown">
                            <a class="dropdown-toggle" href="javascript:void(0);">
                                <span class="icon-holder">
                                    <i class="fas fa-globe"></i>
                                </span>
                                <span class="title">News Center</span>
                                <span class="arrow">
                                    <i class="arrow-icon"></i>
                                </span>
                            </a>
                            <ul class="dropdown-menu">
								<li> <a href="<?php echo $dir; ?>blog-add/">Add News</a></li>
								<li> <a href="<?php echo $dir; ?>blog/">Manage News</a></li>
                            </ul>
                        </li>
						
						
						
						<li class="nav-item dropdown">
                            <a class="dropdown-toggle" href="javascript:void(0);">
                                <span class="icon-holder">
                                    <i class="fas fa-handshake"></i>
                                </span>
                                <span class="title">Testimonials</span>
                                <span class="arrow">
                                    <i class="arrow-icon"></i>
                                </span>
                            </a>
                            <ul class="dropdown-menu">
								 <li>
                                    <a href="<?php echo $dir; ?>testimonials-all/">All Testimonials</a>
                                </li>
                            </ul>
                        </li>
						
                       
                        
						
						
                     
                        
						
                        
                               
                        <?php 
						/*
                        <li class="nav-item dropdown">
                            <a class="dropdown-toggle" href="javascript:void(0);">
                                <span class="icon-holder">
                                    <i class="far fa-comment-alt"></i>
                                </span>
                                <span class="title">Messages</span>
                                <span class="arrow">
                                    <i class="arrow-icon"></i>
                                </span>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="<?php echo $dir; ?>compose-mail/">Send Message to All</a>
                                </li>
								<li>
                                    <a href="<?php echo $dir; ?>notify-users/">Send Message to User</a>
                                </li>
                                <li>
                                    <a href="<?php echo $dir; ?>notifications/">View Messages </a>
                                </li>
                               
                            </ul>
                        </li>
						*/
						?>
						
                                                  
                        
                        <?php } ?>
                        
                        
    
   
                        
                    </ul>
                </div>
            </div>








            <?php }else{ ?>

            <div class="side-nav">
                <div class="side-nav-inner">
                    <ul class="side-nav-menu scrollable">
                        
                        <li class="nav-item">
                            <a href="<?php echo $home_dir; ?>">
                                <span class="icon-holder">
                                    <i class="anticon anticon-home"></i>
                                </span>
                                <span class="title">Home</span>
                             </a>
                        </li>
                        
						
                        <li class="nav-item">
                            <a href="<?php echo $dir; ?>login/">
                                <span class="icon-holder">
                                    <i class="anticon anticon-login"></i>
                                </span>
                                <span class="title"> Log In </span>
                             </a>
                        </li>
                        
                        

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

            <?php } ?>
