<?php
    /**
     * @var AppView $this
     * @var string  $headerImage
     */

    use App\View\AppView;
    use Cake\Utility\Text;

    if (!empty($subject)) {
        $this->assign('title', $subject);
    }
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta
        name="viewport"
        content="width=device-width, initial-scale=1.0"
    >
    <title><?= $this->fetch('title') ?></title>
    <?= $this->element('Icing.theme/email/style') ?>
</head>
<body>
<div class="email-wrapper">
    <?= $this->element('Icing.theme/email/header') ?>
    <div class="email-container">
        <div class="email-title">
            <?= $this->fetch('title') ?>
        </div>
        <div class="email-separator"></div>
        <div class="email-content">
            <?= $this->fetch('content') ?>
        </div>
    </div>
    <div class="email-footer">
        <?= $this->element('Icing.theme/email/footer') ?>
    </div>
</div>
</body>
</html>
