2022-01-18 13:04:08 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Local variables.
|
2023-02-21 09:58:21 +03:00
|
|
|
*
|
|
|
|
* @var array $appointment
|
|
|
|
* @var array $service
|
|
|
|
* @var array $provider
|
|
|
|
* @var array $customer
|
|
|
|
* @var array $settings
|
|
|
|
* @var array $timezone
|
2022-01-18 13:04:08 +03:00
|
|
|
* @var string $reason
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2020-04-22 22:48:56 +03:00
|
|
|
<html lang="en">
|
2016-01-09 23:29:28 +02:00
|
|
|
<head>
|
2023-12-31 21:46:27 +03:00
|
|
|
<title><?= lang('appointment_cancelled_title') ?> | <?= branding('software','name')?></title>
|
2016-01-09 23:29:28 +02:00
|
|
|
</head>
|
|
|
|
<body style="font: 13px arial, helvetica, tahoma;">
|
2023-02-21 09:58:21 +03:00
|
|
|
|
2023-04-24 11:02:44 +03:00
|
|
|
<div class="email-container" style="width: 650px; border: 1px solid #eee; margin: 30px auto;">
|
2020-09-23 14:55:48 +03:00
|
|
|
<div id="header" style="background-color: #429a82; height: 45px; padding: 10px 15px;">
|
|
|
|
<strong id="logo" style="color: white; font-size: 20px; margin-top: 10px; display: inline-block">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($settings['company_name']) ?>
|
2020-09-23 14:55:48 +03:00
|
|
|
</strong>
|
|
|
|
</div>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2023-04-24 11:02:44 +03:00
|
|
|
<div id="content" style="padding: 10px 15px; min-height: 400px;">
|
2023-02-20 10:43:00 +03:00
|
|
|
<h2>
|
|
|
|
<?= lang('appointment_cancelled_title') ?>
|
|
|
|
</h2>
|
2023-11-29 12:24:09 +03:00
|
|
|
|
2023-02-20 10:43:00 +03:00
|
|
|
<p>
|
|
|
|
<?= lang('appointment_removed_from_schedule') ?>
|
|
|
|
</p>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2023-02-20 10:43:00 +03:00
|
|
|
<h2>
|
|
|
|
<?= lang('appointment_details_title') ?>
|
|
|
|
</h2>
|
2023-02-21 09:58:21 +03:00
|
|
|
|
2020-09-23 14:55:48 +03:00
|
|
|
<table id="appointment-details">
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('service') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($service['name']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('provider') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($provider['first_name'] . ' ' . $provider['last_name']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('start') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-02-21 09:58:21 +03:00
|
|
|
<?= format_date_time($appointment['start_datetime']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
2023-02-21 09:58:21 +03:00
|
|
|
<?= lang('end') ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-02-21 09:58:21 +03:00
|
|
|
<?= format_date_time($appointment['end_datetime']) ?>
|
|
|
|
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('timezone') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-02-21 09:58:21 +03:00
|
|
|
<?= format_timezone($timezone) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
2023-02-21 10:02:32 +03:00
|
|
|
|
2023-07-03 11:07:10 +03:00
|
|
|
<tr>
|
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('description') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
|
|
|
<?= e($service['description']) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php if (!empty($appointment['location'])): ?>
|
2023-02-21 10:02:32 +03:00
|
|
|
<tr>
|
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('location') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($appointment['location']) ?>
|
2023-02-21 10:02:32 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endif; ?>
|
2023-02-21 10:02:32 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php if (!empty($appointment['notes'])): ?>
|
2023-02-21 10:02:32 +03:00
|
|
|
<tr>
|
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('notes') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($appointment['notes']) ?>
|
2023-02-21 10:02:32 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endif; ?>
|
2020-09-23 14:55:48 +03:00
|
|
|
</table>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2023-02-21 09:58:21 +03:00
|
|
|
<h2>
|
|
|
|
<?= lang('customer_details_title') ?>
|
|
|
|
</h2>
|
|
|
|
|
2020-09-23 14:55:48 +03:00
|
|
|
<table id="customer-details">
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('name') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($customer['first_name'] . ' ' . $customer['last_name']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('email') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($customer['email']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('phone_number') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($customer['phone_number']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-02-20 10:43:00 +03:00
|
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
|
|
<?= lang('address') ?>
|
|
|
|
</td>
|
|
|
|
<td style="padding: 3px;">
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($customer['address']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</td>
|
2020-09-23 14:55:48 +03:00
|
|
|
</tr>
|
|
|
|
</table>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2023-02-20 10:43:00 +03:00
|
|
|
<h2>
|
|
|
|
<?= lang('reason') ?>
|
|
|
|
</h2>
|
2023-11-29 12:24:09 +03:00
|
|
|
|
2023-02-20 10:43:00 +03:00
|
|
|
<p>
|
2023-03-13 10:18:39 +03:00
|
|
|
<?= e($reason) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</p>
|
2020-09-23 14:55:48 +03:00
|
|
|
</div>
|
2016-01-09 23:29:28 +02:00
|
|
|
|
2020-09-23 14:55:48 +03:00
|
|
|
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
2016-01-09 23:29:28 +02:00
|
|
|
border-top: 1px solid #EEE; background: #FAFAFA;">
|
2023-12-31 21:46:27 +03:00
|
|
|
<?= lang("powered_by") ?>
|
2020-09-23 14:55:48 +03:00
|
|
|
|
|
2023-03-13 10:18:39 +03:00
|
|
|
<a href="<?= e($settings['company_link']) ?>" style="text-decoration: none;">
|
|
|
|
<?= e($settings['company_name']) ?>
|
2023-02-20 10:43:00 +03:00
|
|
|
</a>
|
2016-01-09 23:29:28 +02:00
|
|
|
</div>
|
2020-09-23 14:55:48 +03:00
|
|
|
</div>
|
2023-02-21 09:58:21 +03:00
|
|
|
|
2016-01-09 23:29:28 +02:00
|
|
|
</body>
|
|
|
|
</html>
|