mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
127 lines
5.8 KiB
PHP
Executable file
127 lines
5.8 KiB
PHP
Executable file
<?php
|
|
/**
|
|
* Local variables.
|
|
*
|
|
* @var string $active_menu
|
|
*/
|
|
?>
|
|
|
|
<nav id="header" class="navbar navbar-expand-md navbar-dark">
|
|
<div id="header-logo" class="navbar-brand">
|
|
<img src="<?= base_url('assets/img/logo.png') ?>" alt="logo">
|
|
<h6>EASY!APPOINTMENTS</h6>
|
|
<small>Online Appointment Scheduler</small>
|
|
</div>
|
|
|
|
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#header-menu">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
|
|
<div id="header-menu" class="collapse navbar-collapse flex-row-reverse px-2">
|
|
<ul class="navbar-nav">
|
|
<?php $hidden = can('view', PRIV_APPOINTMENTS) ? '' : 'd-none' ?>
|
|
<?php $active = $active_menu == PRIV_APPOINTMENTS ? 'active' : '' ?>
|
|
<li class="nav-item <?= $active . $hidden ?>">
|
|
<a href="<?= site_url('calendar') ?>" class="nav-link"
|
|
data-tippy-content="<?= lang('manage_appointment_record_hint') ?>">
|
|
<i class="fas fa-calendar-alt me-2"></i>
|
|
<?= lang('calendar') ?>
|
|
</a>
|
|
</li>
|
|
|
|
<?php $hidden = can('view', PRIV_CUSTOMERS) ? '' : 'd-none' ?>
|
|
<?php $active = $active_menu == PRIV_CUSTOMERS ? 'active' : '' ?>
|
|
<li class="nav-item <?= $active . $hidden ?>">
|
|
<a href="<?= site_url('customers') ?>" class="nav-link"
|
|
data-tippy-content="<?= lang('manage_customers_hint') ?>">
|
|
<i class="fas fa-user-friends me-2"></i>
|
|
<?= lang('customers') ?>
|
|
</a>
|
|
</li>
|
|
|
|
<?php $hidden = can('view', PRIV_SERVICES) ? '' : 'd-none' ?>
|
|
<?php $active = $active_menu == PRIV_SERVICES ? 'active' : '' ?>
|
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
|
data-tippy-content="<?= lang('manage_services_hint') ?>">
|
|
<i class="fas fa-business-time me-2"></i>
|
|
<?= lang('services') ?>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<a class="dropdown-item" href="<?= site_url('services') ?>">
|
|
<?= lang('services') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('categories') ?>">
|
|
<?= lang('categories') ?>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
|
|
<?php $hidden = can('view', PRIV_USERS) ? '' : 'd-none' ?>
|
|
<?php $active = $active_menu == PRIV_USERS ? 'active' : '' ?>
|
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
|
data-tippy-content="<?= lang('manage_users_hint') ?>">
|
|
<i class="fas fa-users me-2"></i>
|
|
<?= lang('users') ?>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<a class="dropdown-item" href="<?= site_url('providers') ?>">
|
|
<?= lang('providers') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('secretaries') ?>">
|
|
<?= lang('secretaries') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('admins') ?>">
|
|
<?= lang('admins') ?>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
|
|
<?php $hidden = can('view', PRIV_SYSTEM_SETTINGS) || can('view', PRIV_USER_SETTINGS) ? '' : 'd-none' ?>
|
|
<?php $active = $active_menu == PRIV_SYSTEM_SETTINGS ? 'active' : '' ?>
|
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
|
data-tippy-content="<?= lang('settings_hint') ?>">
|
|
<i class="fas fa-cogs me-2"></i>
|
|
<?= lang('settings') ?>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<?php if (can('view', PRIV_SYSTEM_SETTINGS)): ?>
|
|
<a class="dropdown-item" href="<?= site_url('general_settings') ?>">
|
|
<?= lang('general') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('booking_settings') ?>">
|
|
<?= lang('booking') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('business_settings') ?>">
|
|
<?= lang('business_logic') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('legal_settings') ?>">
|
|
<?= lang('legal_contents') ?>
|
|
</a>
|
|
<?php endif ?>
|
|
<a class="dropdown-item" href="<?= site_url('account') ?>">
|
|
<?= lang('current_user') ?>
|
|
</a>
|
|
<a class="dropdown-item" href="<?= site_url('about') ?>">
|
|
<?= lang('about') ?>
|
|
</a>
|
|
<div class="dropdown-divider"></div>
|
|
<a class="dropdown-item" href="<?= site_url('logout') ?>">
|
|
<?= lang('log_out') ?>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<div id="notification" style="display: none;"></div>
|
|
|
|
<div id="loading" style="display: none;">
|
|
<div class="any-element animation is-loading">
|
|
|
|
</div>
|
|
</div>
|