Files
wms-app/app/include_setting_sidebar.php
T

81 lines
3.0 KiB
PHP

<?php
$current_page = basename($_SERVER['PHP_SELF']);
?>
<!-- SIDEBAR -->
<aside id="sidebar" class="sidebar overflow-y-auto d-flex flex-column">
<div class="logo-area">
<a href="<?php echo $server_url?>index.php" class="d-inline-flex">
<img
src="data:image/svg+xml,%3csvg%20width='62'%20height='67'%20viewBox='0%200%2062%2067'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.604%2066.378L0.00805664%2048.1582V35.7825L30.604%2054.0023V66.378Z'%20fill='%23302C4D'/%3e%3cpath%20d='M61.1996%2048.1582L30.604%2066.378V54.0023L61.1996%2035.7825V48.1582Z'%20fill='%23E66239'/%3e%3cpath%20d='M30.5955%200L0%2018.2198V30.5955L30.5955%2012.3757V0Z'%20fill='%23657E92'/%3e%3cpath%20d='M61.191%2018.2198L30.5955%200V12.3757L61.191%2030.5955V18.2198Z'%20fill='%23A3B2BE'/%3e%3cpath%20d='M30.604%2048.8457L0.00805664%2030.6259V18.2498L30.604%2036.47V48.8457Z'%20fill='%23302C4D'/%3e%3cpath%20d='M61.1996%2030.6259L30.604%2048.8457V36.47L61.1996%2018.2498V30.6259Z'%20fill='%23E66239'/%3e%3c/svg%3e"
alt=""
width="24"
/>
<span class="logo-text ms-2">
<img src="<?php echo $server_url?>assets/images/logo.svg" alt="" />
</span>
</a>
</div>
<ul class="nav flex-column">
<!-- Setting -->
<li class="nav-text-space">
<small class="nav-text text-muted">Setting</small>
</li>
<li>
<a class="nav-link <?php echo $current_page === 'profile.php' ? 'active' : ''; ?>"
href="<?php echo $server_url?>setting/profile.php">
<i class="ti ti-user-circle"></i>
<span class="nav-text">Profile</span>
</a>
</li>
<li>
<a class="nav-link <?php echo $current_page === 'company.php' ? 'active' : ''; ?>"
href="<?php echo $server_url?>setting/company.php">
<i class="ti ti-building"></i>
<span class="nav-text">Company Profile</span>
</a>
</li>
<li>
<a class="nav-link <?php echo $current_page === 'users.php' ? 'active' : ''; ?>"
href="<?php echo $server_url?>setting/users.php">
<i class="ti ti-users"></i>
<span class="nav-text">Users Access</span>
</a>
</li>
<li>
<a class="nav-link <?php echo $current_page === 'smtp.php' ? 'active' : ''; ?>"
href="<?php echo $server_url?>setting/smtp.php">
<i class="ti ti-mail-cog"></i>
<span class="nav-text">SMTP Setting</span>
</a>
</li>
<li>
<a class="nav-link <?php echo $current_page === 'system_config.php' ? 'active' : ''; ?>"
href="<?php echo $server_url?>setting/system_config.php">
<i class="ti ti-adjustments-cog"></i>
<span class="nav-text">System Configuration</span>
</a>
</li>
<!-- Back -->
<li class="nav-text-space mt-2">
<small class="nav-text text-muted">Navigation</small>
</li>
<li>
<a class="nav-link" href="<?php echo $server_url?>dashboard/index.php">
<i class="ti ti-arrow-left"></i>
<span class="nav-text">Back to App</span>
</a>
</li>
</ul>
</aside>