65 lines
2.7 KiB
PHP
65 lines
2.7 KiB
PHP
|
|
<?php
|
|||
|
|
/**
|
|||
|
|
* Bestätigung nach der digitalen Unterschrift des Kunden.
|
|||
|
|
*
|
|||
|
|
* @var array $booking
|
|||
|
|
* @var array $doc
|
|||
|
|
* @var bool $mailed
|
|||
|
|
* @var string $title
|
|||
|
|
*/
|
|||
|
|
$legal = legal_data();
|
|||
|
|
$owner = trim((string) ($legal['owner'] ?? '')) !== '' ? (string) $legal['owner'] : (string) $legal['business_name'];
|
|||
|
|
?>
|
|||
|
|
<!doctype html>
|
|||
|
|
<html lang="de">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="utf-8">
|
|||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|||
|
|
<meta name="theme-color" content="#196abc">
|
|||
|
|
<meta name="robots" content="noindex, nofollow">
|
|||
|
|
<title><?= e($title) ?> · <?= e((string) $legal['business_name']) ?></title>
|
|||
|
|
<link rel="icon" type="image/svg+xml" href="<?= e(asset('favicon.svg')) ?>">
|
|||
|
|
<link rel="stylesheet" href="<?= e(asset('app.css')) ?>">
|
|||
|
|
</head>
|
|||
|
|
<body class="app sign-page">
|
|||
|
|
<main class="sign-shell">
|
|||
|
|
<header class="sign-head">
|
|||
|
|
<p class="eyebrow"><?= e((string) $legal['business_name']) ?> · Mietvertrag</p>
|
|||
|
|
<h1>Vielen Dank – Ihre Unterschrift ist gespeichert</h1>
|
|||
|
|
<p class="muted">
|
|||
|
|
<?= e((string) $booking['customer_name']) ?> ·
|
|||
|
|
<?= e((string) $booking['trailer_label']) ?> ·
|
|||
|
|
<?= e(fmt_date_short((string) $booking['start_date'])) ?> –
|
|||
|
|
<?= e(fmt_date_short((string) $booking['end_date'])) ?>
|
|||
|
|
</p>
|
|||
|
|
</header>
|
|||
|
|
|
|||
|
|
<section class="card">
|
|||
|
|
<div class="card__head">
|
|||
|
|
<h2>Wie geht es weiter?</h2>
|
|||
|
|
<p>
|
|||
|
|
Der Mietvertrag wurde digital unterschrieben und im PDF festgehalten.
|
|||
|
|
<?php if ($mailed): ?>
|
|||
|
|
Der unterschriebene Vertrag ist auf dem Weg an <?= e((string) $booking['email']) ?>.
|
|||
|
|
<?php else: ?>
|
|||
|
|
Sie erhalten den unterschriebenen Vertrag von uns per E-Mail.
|
|||
|
|
<?php endif; ?>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
<dl class="copy-list">
|
|||
|
|
<div class="copy-list__row"><dt>Unterschrieben am</dt><dd><?= e(fmt_datetime((string) $doc['signed_at'])) ?></dd></div>
|
|||
|
|
<div class="copy-list__row"><dt>Mietgegenstand</dt><dd><?= e((string) $booking['trailer_label']) ?></dd></div>
|
|||
|
|
<div class="copy-list__row"><dt>Zeitraum</dt><dd>
|
|||
|
|
<?= e(fmt_date_short_with_time((string) $booking['start_date'], $booking['start_time'] ?? null)) ?> –
|
|||
|
|
<?= e(fmt_date_short_with_time((string) $booking['end_date'], $booking['end_time'] ?? null)) ?>
|
|||
|
|
</dd></div>
|
|||
|
|
</dl>
|
|||
|
|
<p class="muted small">
|
|||
|
|
Sie können diese Seite jetzt schließen. Bei Fragen: <?= e($owner) ?> · <?= e((string) $legal['phone']) ?> ·
|
|||
|
|
<?= e((string) $legal['email']) ?>
|
|||
|
|
</p>
|
|||
|
|
</section>
|
|||
|
|
</main>
|
|||
|
|
</body>
|
|||
|
|
</html>
|