<?php
if (file_exists("add2.php")){require_once('add2.php');}else{$add2=0;}

if ($add2==0){$showcredits="display:none;";}else{$showcredits="";}

?>
        <ul class="navbar-nav bg-gradient-dark sidebar sidebar-dark accordion" id="accordionSidebar">

            <a class="d-flex align-items-center justify-content-center" style="text-align:center; margin-top:10px;" href="#">
                <div class="sidebar-brand-icon" >
					<img src="img/logo.png" style="max-width:90%; height:auto;">
                </div>
				
                
            </a>


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


            <li class="nav-item">
                <a class="nav-link" href="adminusers.php">
                    <i class="fas fa-users"></i>
                    <span>Users</span></a>
            </li>
            <li class="nav-item" style="<?php echo $showcredits; ?>">
                <a class="nav-link" href="adminsales.php">
                    <i class="fas fa-file-invoice-dollar"></i>
                    <span>Credit Sales</span></a>
            </li>			
			<li class="nav-item">
                <a class="nav-link" href="adminsettings.php">
                    <i class="fas fa-cog"></i>
                    <span>Settings</span></a>
            </li>
			<li class="nav-item" style="<?php echo $showcredits; ?>">
                <a class="nav-link" href="adminpacksettings.php">
                    <i class="fas fa-comment-dollar"></i>
                    <span>Pack Settings</span></a>
            </li>			
			<li class="nav-item">
                <a class="nav-link" href="adminupgrade.php">
                    <i class="fas fa-rocket"></i>
                    <span>Upgrade</span></a>
            </li>			
			<li class="nav-item" style="cursor:pointer;">
                <a class="nav-link" id="adminLogout">
                    <i class="fas fa-sign-out-alt"></i>
                    <span>Logout Admin</span></a>
            </li>

            <hr class="sidebar-divider">

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

        </ul>
        