2023-11-29 12:24:09 +03:00
|
|
|
<?php extend('layouts/backend_layout'); ?>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('content'); ?>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
2021-12-18 23:36:25 +03:00
|
|
|
<div id="business-logic-page" class="container backend-page">
|
2021-11-18 10:49:23 +03:00
|
|
|
<div id="business-logic">
|
2021-12-18 23:36:25 +03:00
|
|
|
<div class="row">
|
2022-07-27 02:45:52 +03:00
|
|
|
<div class="col-sm-3 offset-sm-1">
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php component('settings_nav'); ?>
|
2022-07-27 02:45:52 +03:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2021-12-18 23:36:25 +03:00
|
|
|
<form>
|
|
|
|
<fieldset>
|
2022-09-14 11:14:19 +03:00
|
|
|
<div class="d-flex justify-content-between align-items-center border-bottom mb-4 py-2">
|
|
|
|
<h4 class="text-black-50 mb-0 fw-light">
|
|
|
|
<?= lang('business_logic') ?>
|
|
|
|
</h4>
|
2021-12-18 23:36:25 +03:00
|
|
|
|
|
|
|
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?>
|
2022-01-24 14:55:45 +03:00
|
|
|
<button type="button" id="save-settings" class="btn btn-primary">
|
2021-12-18 23:36:25 +03:00
|
|
|
<i class="fas fa-check-square me-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endif; ?>
|
2022-09-14 11:14:19 +03:00
|
|
|
</div>
|
2021-12-18 23:36:25 +03:00
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<h5 class="text-black-50 mb-3 fw-light"><?= lang('working_plan') ?></h5>
|
2021-12-18 23:36:25 +03:00
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<p class="form-text text-muted mb-4">
|
2021-11-23 11:53:10 +03:00
|
|
|
<?= lang('edit_working_plan_hint') ?>
|
2022-09-14 11:14:19 +03:00
|
|
|
</p>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
|
|
|
<table class="working-plan table table-striped">
|
|
|
|
<thead>
|
2022-06-27 15:14:46 +03:00
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
</tr>
|
2021-11-18 10:49:23 +03:00
|
|
|
</thead>
|
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
|
|
</table>
|
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<div class="text-end mb-5">
|
2021-11-18 10:49:23 +03:00
|
|
|
<button class="btn btn-outline-secondary" id="apply-global-working-plan" type="button">
|
|
|
|
<i class="fas fa-check"></i>
|
|
|
|
<?= lang('apply_to_all_providers') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<h5 class="text-black-50 mb-3 fw-light"><?= lang('breaks') ?></h5>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<p class="form-text text-muted">
|
2021-11-23 11:53:10 +03:00
|
|
|
<?= lang('edit_breaks_hint') ?>
|
2022-09-14 11:14:19 +03:00
|
|
|
</p>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
|
|
|
<div class="mt-2">
|
|
|
|
<button type="button" class="add-break btn btn-primary">
|
2022-07-26 16:51:43 +03:00
|
|
|
<i class="fas fa-plus-square me-2"></i>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?= lang('add_break') ?>
|
2021-11-18 10:49:23 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<table class="breaks table table-striped mb-5">
|
2021-11-18 10:49:23 +03:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
<th><?= lang('actions') ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
|
|
</table>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
2023-11-17 10:20:16 +03:00
|
|
|
<?php if (can('view', PRIV_BLOCKED_PERIODS)): ?>
|
2023-11-29 12:24:09 +03:00
|
|
|
<h5 class="text-black-50 mb-3 fw-light"><?= lang('blocked_periods') ?></h5>
|
|
|
|
|
|
|
|
<p class="form-text text-muted">
|
|
|
|
<?= lang('blocked_periods_hint') ?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="mb-5">
|
|
|
|
<a href="<?= site_url('blocked_periods') ?>" class="btn btn-primary">
|
|
|
|
<i class="fas fa-cogs me-2"></i>
|
|
|
|
<?= lang('configure') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<h5 class="text-black-50 mb-3 fw-light"><?= lang(
|
2023-12-22 13:35:41 +03:00
|
|
|
'allow_rescheduling_cancellation_before',
|
2023-11-29 12:24:09 +03:00
|
|
|
) ?></h5>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<div class="mb-5">
|
2021-12-18 23:36:25 +03:00
|
|
|
<label for="book-advance-timeout" class="form-label">
|
|
|
|
<?= lang('timeout_minutes') ?>
|
|
|
|
</label>
|
|
|
|
<input id="book-advance-timeout" data-field="book_advance_timeout" class="form-control"
|
|
|
|
type="number" min="15">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('book_advance_timeout_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<h5 class="text-black-50 mb-3 fw-light"><?= lang('future_booking_limit') ?></h5>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
2022-09-14 11:14:19 +03:00
|
|
|
<div class="mb-5">
|
2022-06-27 15:14:46 +03:00
|
|
|
<label for="future-booking-limit" class="form-label">
|
|
|
|
<?= lang('limit_days') ?>
|
|
|
|
</label>
|
|
|
|
<input id="future-booking-limit" data-field="future_booking_limit" class="form-control"
|
|
|
|
type="number" min="15">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('future_booking_limit_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-16 21:54:26 +03:00
|
|
|
|
|
|
|
<div class="d-flex justify-content-start align-items-center mb-3">
|
|
|
|
<h5 class="text-black-50 mb-0 me-3 fw-light">
|
|
|
|
<?= lang('appointment_status_options') ?>
|
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="form-text text-muted mb-4">
|
|
|
|
<?= lang('appointment_status_options_info') ?>
|
|
|
|
</p>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php component('appointment_status_options', [
|
2023-12-22 13:35:41 +03:00
|
|
|
'attributes' => 'id="appointment-status-options"',
|
2023-11-29 12:24:09 +03:00
|
|
|
]); ?>
|
2021-12-18 23:36:25 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-18 10:49:23 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('content'); ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('scripts'); ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
|
|
|
<script src="<?= asset_url('assets/vendor/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
2022-01-11 12:54:14 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/date.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/utils/string.js') ?>"></script>
|
2023-02-20 10:17:48 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/ui.js') ?>"></script>
|
2021-12-18 23:36:25 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/utils/working_plan.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/business_settings_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/pages/business_settings.js') ?>"></script>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('scripts'); ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|