mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-01-11 07:58:42 +00:00
118 lines
6.6 KiB
PHP
Executable File
118 lines
6.6 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package Web\Backend
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
?>
|
|
<nav id="nav-side">
|
|
<div id="nav-side-outer" class="oms-ui-state">
|
|
<ul id="nav-side-inner" class="nav" role="navigation">
|
|
<li>
|
|
<ul>
|
|
<li>
|
|
<label for="nav-admin">
|
|
<i class=""></i>
|
|
<span><?= $this->getHtml('Admin', '0', '0'); ?></span>
|
|
</label>
|
|
</li>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'admin'
|
|
&& $this->request->uri->getPathElement(1) === 'organizations'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>admin/organizations"><?= $this->getHtml('Organizations', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'admin'
|
|
&& $this->request->uri->getPathElement(1) === 'users'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>admin/users"><?= $this->getHtml('Users', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'admin'
|
|
&& $this->request->uri->getPathElement(1) === 'resources'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>admin/resources"><?= $this->getHtml('Resources', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'admin'
|
|
&& $this->request->uri->getPathElement(1) === 'bills'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>admin/bills"><?= $this->getHtml('Bills', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'admin'
|
|
&& $this->request->uri->getPathElement(1) === 'logs'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>admin/logs"><?= $this->getHtml('Logs', '0', '0'); ?></a>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<ul>
|
|
<li>
|
|
<label for="nav-org">
|
|
<i class=""></i>
|
|
<span><?= $this->getHtml('Organization', '0', '0'); ?></span>
|
|
</label>
|
|
</li>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'organization'
|
|
&& $this->request->uri->getPathElement(1) === 'settings'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>organization/settings"><?= $this->getHtml('Settings', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'organization'
|
|
&& $this->request->uri->getPathElement(1) === 'users'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>organization/users"><?= $this->getHtml('Users', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'organization'
|
|
&& $this->request->uri->getPathElement(1) === 'resources'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>organization/resources"><?= $this->getHtml('Resources', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'organization'
|
|
&& $this->request->uri->getPathElement(1) === 'bills'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>organization/bills"><?= $this->getHtml('Bills', '0', '0'); ?></a>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<ul>
|
|
<li>
|
|
<label for="nav-home">
|
|
<i class=""></i>
|
|
<span><?= $this->getHtml('Home', '0', '0'); ?></span>
|
|
</label>
|
|
</li>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === ''
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}');
|
|
?>"><?= $this->getHtml('Dashboard', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'user'
|
|
&& $this->request->uri->getPathElement(1) === 'settings'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>user/settings"><?= $this->getHtml('Settings', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'user'
|
|
&& $this->request->uri->getPathElement(1) === 'resources'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>user/resources"><?= $this->getHtml('Resources', '0', '0'); ?></a>
|
|
<li><a class="<?= $this->request->uri->getPathElement(0) === 'user'
|
|
&& $this->request->uri->getPathElement(1) === 'reports'
|
|
? 'active' : '';
|
|
?>" href="<?= UriFactory::build('{/lang}/{/app}/{/prefix}'); ?>user/reports"><?= $this->getHtml('Reports', '0', '0'); ?></a>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<ul>
|
|
<li>
|
|
<label for="nav-legal">
|
|
<i class=""></i>
|
|
<span><?= $this->getHtml('Legal', '0', '0'); ?></span>
|
|
</label>
|
|
</li>
|
|
<li><a href="/privacy"><?= $this->getHtml('PrivacyPolicy', '0', '0'); ?></a>
|
|
<li><a href="/terms"><?= $this->getHtml('Terms', '0', '0'); ?></a>
|
|
<li><a href="/imprint"><?= $this->getHtml('Imprint', '0', '0'); ?></a>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|