mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 20:13:01 +03:00
182 lines
5.7 KiB
PHP
182 lines
5.7 KiB
PHP
<?php
|
|
/**
|
|
* Local variables.
|
|
*
|
|
* @var string $subject
|
|
* @var string $message
|
|
* @var array $appointment
|
|
* @var array $service
|
|
* @var array $provider
|
|
* @var array $customer
|
|
* @var array $settings
|
|
* @var array $timezone
|
|
* @var string $appointment_link
|
|
*/
|
|
?>
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<title>
|
|
<?= lang('appointment_details_title') ?> | Easy!Appointments
|
|
</title>
|
|
</head>
|
|
<body style="font: 13px arial, helvetica, tahoma;">
|
|
|
|
<div class="email-container" style="width: 650px; border: 1px solid #eee; margin: 30px auto;">
|
|
<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">
|
|
<?= e($settings['company_name']) ?>
|
|
</strong>
|
|
</div>
|
|
|
|
<div id="content" style="padding: 10px 15px; min-height: 400px;">
|
|
<h2>
|
|
<?= $subject ?>
|
|
</h2>
|
|
|
|
<p>
|
|
<?= $message ?>
|
|
</p>
|
|
|
|
<h2>
|
|
<?= lang('appointment_details_title') ?>
|
|
</h2>
|
|
|
|
<table id="appointment-details">
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('service') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($service['name']) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('provider') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($provider['first_name'] . ' ' . $provider['last_name']) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('start') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= format_date_time($appointment['start_datetime']) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('end') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= format_date_time($appointment['end_datetime']) ?>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('timezone') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= format_timezone($timezone) ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('description') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($service['description']) ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php if ( ! empty($appointment['location'])): ?>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('location') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($appointment['location']) ?>
|
|
</td>
|
|
</tr>
|
|
<?php endif ?>
|
|
|
|
<?php if ( ! empty($appointment['notes'])): ?>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('notes') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($appointment['notes']) ?>
|
|
</td>
|
|
</tr>
|
|
<?php endif ?>
|
|
</table>
|
|
|
|
<h2>
|
|
<?= lang('customer_details_title') ?>
|
|
</h2>
|
|
|
|
<table id="customer-details">
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('name') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($customer['first_name'] . ' ' . $customer['last_name']) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('email') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($customer['email']) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('phone_number') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($customer['phone_number']) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label" style="padding: 3px;font-weight: bold;">
|
|
<?= lang('address') ?>
|
|
</td>
|
|
<td style="padding: 3px;">
|
|
<?= e($customer['address']) ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>
|
|
<?= lang('appointment_link_title') ?>
|
|
</h2>
|
|
|
|
<a href="<?= e($appointment_link) ?>" style="width: 600px;">
|
|
<?= e($appointment_link) ?>
|
|
</a>
|
|
</div>
|
|
|
|
<div id="footer" style="padding: 10px; text-align: center; margin-top: 10px;
|
|
border-top: 1px solid #EEE; background: #FAFAFA;">
|
|
Powered by
|
|
<a href="https://easyappointments.org" style="text-decoration: none;">
|
|
Easy!Appointments
|
|
</a>
|
|
|
|
|
<a href="<?= e($settings['company_link']) ?>" style="text-decoration: none;">
|
|
<?= e($settings['company_name']) ?>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|