2021-11-12 10:38:20 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @var string $company_name
|
|
|
|
* @var string $customer_token
|
|
|
|
* @var string $date_format
|
|
|
|
* @var string $time_format
|
|
|
|
* @var string $first_weekday
|
|
|
|
* @var bool $manage_mode
|
|
|
|
* @var array $appointment_data
|
|
|
|
* @var array $provider_data
|
|
|
|
* @var array $customer_data
|
|
|
|
* @var array $available_services
|
|
|
|
* @var array $available_providers
|
|
|
|
* @var string $display_any_provider
|
|
|
|
* @var string $display_terms_and_conditions
|
|
|
|
* @var string $display_privacy_policy
|
|
|
|
* @var string $display_cookie_notice
|
|
|
|
*/
|
|
|
|
?>
|
2021-12-11 00:21:44 +03:00
|
|
|
|
2021-11-12 10:38:20 +03:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta name="theme-color" content="#35A768">
|
|
|
|
|
2021-12-11 00:21:44 +03:00
|
|
|
<?php slot('meta') ?>
|
|
|
|
|
|
|
|
<title><?= lang('page_title') . ' ' . $company_name ?> | Easy!Appointments</title>
|
|
|
|
|
|
|
|
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
|
|
|
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
|
|
|
|
|
2021-11-12 10:38:20 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.css') ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/cookieconsent/cookieconsent.min.css') ?>">
|
2021-11-25 11:24:07 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/bootstrap.css') ?>">
|
2021-11-12 10:38:20 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
2021-12-11 00:21:44 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking_layout.css') ?>">
|
2021-11-12 10:38:20 +03:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="main" class="container">
|
|
|
|
<div class="row wrapper">
|
|
|
|
<div id="book-appointment-wizard" class="col-12 col-lg-10 col-xl-8">
|
|
|
|
|
2021-12-13 09:34:51 +03:00
|
|
|
<?php component('booking_header') ?>
|
2021-11-15 11:48:51 +03:00
|
|
|
|
|
|
|
<?php slot('content') ?>
|
|
|
|
|
2021-12-13 09:34:51 +03:00
|
|
|
<?php component('booking_footer') ?>
|
2021-11-12 10:38:20 +03:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if ($display_cookie_notice === '1'): ?>
|
2021-11-23 10:21:50 +03:00
|
|
|
<?php component('cookie_notice_modal') ?>
|
2021-11-12 10:38:20 +03:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if ($display_terms_and_conditions === '1'): ?>
|
2021-11-15 11:48:51 +03:00
|
|
|
<?php component('terms_and_conditions_modal') ?>
|
2021-11-12 10:38:20 +03:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if ($display_privacy_policy === '1'): ?>
|
2021-11-15 11:48:51 +03:00
|
|
|
<?php component('privacy_policy_modal') ?>
|
2021-11-12 10:38:20 +03:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<script>
|
2021-12-11 00:21:44 +03:00
|
|
|
const GlobalVariables = {
|
2021-11-12 10:38:20 +03:00
|
|
|
availableServices: <?= json_encode($available_services) ?>,
|
|
|
|
availableProviders: <?= json_encode($available_providers) ?>,
|
|
|
|
baseUrl: <?= json_encode(config('base_url')) ?>,
|
|
|
|
manageMode: <?= $manage_mode ? 'true' : 'false' ?>,
|
|
|
|
customerToken: <?= json_encode($customer_token) ?>,
|
|
|
|
dateFormat: <?= json_encode($date_format) ?>,
|
|
|
|
timeFormat: <?= json_encode($time_format) ?>,
|
|
|
|
firstWeekday: <?= json_encode($first_weekday) ?>,
|
|
|
|
displayCookieNotice: <?= json_encode($display_cookie_notice === '1') ?>,
|
|
|
|
appointmentData: <?= json_encode($appointment_data) ?>,
|
|
|
|
providerData: <?= json_encode($provider_data) ?>,
|
|
|
|
customerData: <?= json_encode($customer_data) ?>,
|
|
|
|
displayAnyProvider: <?= json_encode($display_any_provider) ?>,
|
|
|
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>
|
|
|
|
};
|
|
|
|
|
2021-12-11 00:21:44 +03:00
|
|
|
const availableLanguages = <?= json_encode(config('available_languages')) ?>;
|
2021-11-12 10:38:20 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/cookieconsent/cookieconsent.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
|
2021-11-23 12:12:49 +03:00
|
|
|
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
|
2021-11-12 10:38:20 +03:00
|
|
|
<script src="<?= asset_url('assets/vendor/moment/moment.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/moment-timezone/moment-timezone-with-data.min.js') ?>"></script>
|
2021-12-11 00:21:44 +03:00
|
|
|
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/tippy.js/tippy-bundle.umd.min.js') ?>"></script>
|
2021-12-13 09:41:02 +03:00
|
|
|
|
|
|
|
<script src="<?= asset_url('assets/js/app.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/layouts/booking_layout.js') ?>"></script>
|
2021-11-29 10:55:29 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
|
2021-12-13 09:41:02 +03:00
|
|
|
|
2021-12-16 10:20:10 +03:00
|
|
|
<?php component('js_config_script') ?>
|
2021-12-16 10:21:29 +03:00
|
|
|
<?php component('js_language_script') ?>
|
2021-11-12 10:38:20 +03:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
FrontendBook.initialize(true, GlobalVariables.manageMode);
|
|
|
|
GeneralFunctions.enableLanguageSelection($('#select-language'));
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2021-11-15 11:48:51 +03:00
|
|
|
<?php google_analytics_script() ?>
|
|
|
|
|
2021-12-13 09:41:02 +03:00
|
|
|
<?php slot('scripts') ?>
|
|
|
|
|
2021-11-12 10:38:20 +03:00
|
|
|
</body>
|
|
|
|
</html>
|