2022-01-18 13:04:08 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Local variables.
|
|
|
|
*
|
|
|
|
* @var string $active_menu
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<nav id="header" class="navbar navbar-expand-md navbar-dark">
|
|
|
|
<div id="header-logo" class="navbar-brand">
|
2021-11-25 11:17:01 +03:00
|
|
|
<img src="<?= base_url('assets/img/logo.png') ?>" alt="logo">
|
2020-10-21 21:36:05 +03:00
|
|
|
<h6>EASY!APPOINTMENTS</h6>
|
2022-01-18 15:05:42 +03:00
|
|
|
<small>Online Appointment Scheduler</small>
|
2020-05-05 20:35:33 +03:00
|
|
|
</div>
|
2020-03-18 22:21:11 +03:00
|
|
|
|
2021-11-23 10:41:37 +03:00
|
|
|
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#header-menu">
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
2020-03-18 22:21:11 +03:00
|
|
|
|
2021-11-22 09:59:36 +03:00
|
|
|
<div id="header-menu" class="collapse navbar-collapse flex-row-reverse px-2">
|
2020-05-05 20:35:33 +03:00
|
|
|
<ul class="navbar-nav">
|
2021-11-25 11:17:01 +03:00
|
|
|
<?php $hidden = can('view', PRIV_APPOINTMENTS) ? '' : 'd-none' ?>
|
2022-01-18 13:04:08 +03:00
|
|
|
<?php $active = $active_menu == PRIV_APPOINTMENTS ? 'active' : '' ?>
|
2020-05-05 20:35:33 +03:00
|
|
|
<li class="nav-item <?= $active . $hidden ?>">
|
2021-11-25 11:13:00 +03:00
|
|
|
<a href="<?= site_url('calendar') ?>" class="nav-link"
|
2020-12-09 15:17:45 +03:00
|
|
|
data-tippy-content="<?= lang('manage_appointment_record_hint') ?>">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-calendar-alt me-2"></i>
|
2020-05-05 20:35:33 +03:00
|
|
|
<?= lang('calendar') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2021-11-25 11:17:01 +03:00
|
|
|
<?php $hidden = can('view', PRIV_CUSTOMERS) ? '' : 'd-none' ?>
|
2022-01-18 13:04:08 +03:00
|
|
|
<?php $active = $active_menu == PRIV_CUSTOMERS ? 'active' : '' ?>
|
2020-05-05 20:35:33 +03:00
|
|
|
<li class="nav-item <?= $active . $hidden ?>">
|
2021-11-25 10:46:01 +03:00
|
|
|
<a href="<?= site_url('customers') ?>" class="nav-link"
|
2020-12-09 15:17:45 +03:00
|
|
|
data-tippy-content="<?= lang('manage_customers_hint') ?>">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-user-friends me-2"></i>
|
2020-05-05 20:35:33 +03:00
|
|
|
<?= lang('customers') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2021-11-25 11:17:01 +03:00
|
|
|
<?php $hidden = can('view', PRIV_SERVICES) ? '' : 'd-none' ?>
|
2022-01-18 13:04:08 +03:00
|
|
|
<?php $active = $active_menu == PRIV_SERVICES ? 'active' : '' ?>
|
2021-11-18 07:28:16 +03:00
|
|
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
2021-11-25 11:17:01 +03:00
|
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
2020-12-09 15:17:45 +03:00
|
|
|
data-tippy-content="<?= lang('manage_services_hint') ?>">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-business-time me-2"></i>
|
2020-05-05 20:35:33 +03:00
|
|
|
<?= lang('services') ?>
|
|
|
|
</a>
|
2021-11-22 09:59:36 +03:00
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2021-11-18 07:28:16 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('services') ?>">
|
|
|
|
<?= lang('services') ?>
|
|
|
|
</a>
|
2021-12-15 10:00:48 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('categories') ?>">
|
2021-11-18 07:28:16 +03:00
|
|
|
<?= lang('categories') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-05-05 20:35:33 +03:00
|
|
|
</li>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2021-11-25 11:17:01 +03:00
|
|
|
<?php $hidden = can('view', PRIV_USERS) ? '' : 'd-none' ?>
|
2022-01-18 13:04:08 +03:00
|
|
|
<?php $active = $active_menu == PRIV_USERS ? 'active' : '' ?>
|
2021-11-18 08:25:30 +03:00
|
|
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
2021-11-23 10:37:41 +03:00
|
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
2020-12-09 15:17:45 +03:00
|
|
|
data-tippy-content="<?= lang('manage_users_hint') ?>">
|
2021-11-29 10:58:51 +03:00
|
|
|
<i class="fas fa-users me-2"></i>
|
2020-05-05 20:35:33 +03:00
|
|
|
<?= lang('users') ?>
|
|
|
|
</a>
|
2021-11-22 09:59:36 +03:00
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2021-11-18 08:25:30 +03:00
|
|
|
<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>
|
2020-05-05 20:35:33 +03:00
|
|
|
</li>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2021-11-25 11:17:01 +03:00
|
|
|
<?php $hidden = can('view', PRIV_SYSTEM_SETTINGS) || can('view', PRIV_USER_SETTINGS) ? '' : 'd-none' ?>
|
2022-01-18 13:04:08 +03:00
|
|
|
<?php $active = $active_menu == PRIV_SYSTEM_SETTINGS ? 'active' : '' ?>
|
2021-11-22 09:59:36 +03:00
|
|
|
<li class="nav-item dropdown <?= $active . $hidden ?>">
|
2021-11-23 10:37:41 +03:00
|
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown"
|
2020-12-09 15:17:45 +03:00
|
|
|
data-tippy-content="<?= lang('settings_hint') ?>">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-cogs me-2"></i>
|
2020-05-05 20:35:33 +03:00
|
|
|
<?= lang('settings') ?>
|
|
|
|
</a>
|
2021-11-22 09:59:36 +03:00
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
|
|
<?php if (can('view', PRIV_SYSTEM_SETTINGS)): ?>
|
2021-12-07 13:09:34 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('general_settings') ?>">
|
2021-11-25 11:17:01 +03:00
|
|
|
<?= lang('general') ?>
|
|
|
|
</a>
|
2021-12-07 13:09:34 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('booking_settings') ?>">
|
2021-12-20 11:16:44 +03:00
|
|
|
<?= lang('booking') ?>
|
2021-11-25 11:17:01 +03:00
|
|
|
</a>
|
2022-01-05 10:37:42 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('business_settings') ?>">
|
|
|
|
<?= lang('business_logic') ?>
|
|
|
|
</a>
|
2021-12-07 13:09:34 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('legal_settings') ?>">
|
2021-11-25 11:17:01 +03:00
|
|
|
<?= lang('legal_contents') ?>
|
|
|
|
</a>
|
2021-11-22 09:59:36 +03:00
|
|
|
<?php endif ?>
|
2021-12-18 20:25:03 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('account') ?>">
|
2021-11-22 09:59:36 +03:00
|
|
|
<?= lang('current_user') ?>
|
|
|
|
</a>
|
2021-12-07 13:09:34 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('about') ?>">
|
2021-11-22 09:59:36 +03:00
|
|
|
<?= lang('about') ?>
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
2021-12-07 13:09:34 +03:00
|
|
|
<a class="dropdown-item" href="<?= site_url('logout') ?>">
|
2021-11-22 09:59:36 +03:00
|
|
|
<?= lang('log_out') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-05-05 20:35:33 +03:00
|
|
|
</li>
|
|
|
|
</ul>
|
2016-01-09 23:29:28 +02:00
|
|
|
</div>
|
2016-07-12 22:27:54 +03:00
|
|
|
</nav>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
|
|
|
<div id="notification" style="display: none;"></div>
|
|
|
|
|
|
|
|
<div id="loading" style="display: none;">
|
2017-11-16 01:35:11 +03:00
|
|
|
<div class="any-element animation is-loading">
|
2017-11-16 01:20:04 +03:00
|
|
|
|
|
|
|
</div>
|
2016-01-09 23:29:28 +02:00
|
|
|
</div>
|