<?php
/**
 * Reject booking HTML email template
 *
 * @var \App\View\AppView $this
 * @var string $name email recipient's name
 * @var string $email email recipient's email address
 * @var string $booking_ref booking reference number
 * @var string $reason reject reason
 */
?>
<div class="content">
    <!-- START CENTERED WHITE CONTAINER -->
    <table role="presentation" class="main">
        <!-- START MAIN CONTENT AREA -->
        <tr>
            <td class="wrapper">
                <table role="presentation" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <h3>Regarding your booking request:<?=$booking_ref?></h3>
                            <p>Hi <?= h($name) ?>, </p>
                            <p>Thank you for your interest in <b>Impeccable Courier</b>. </p>
                            <p>We are writing to inform you that, after careful consideration, we are unable to accept your booking request for <?=$booking_ref?> at this time.</p>
                            <b>Reason for rejection:</b>
                            <blockquote style="background: #f9f9f9; border-left: 5px solid #ccc; padding: 10px; font-style: italic;">
                                <?= nl2br(h($reason)) ?>
                            </blockquote>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <!-- END MAIN CONTENT AREA -->
    </table>
    <!-- END CENTERED WHITE CONTAINER -->
    <!-- START FOOTER -->
    <div class="footer">
        <table role="presentation" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="content-block">
                    This email is addressed to <?= $name ?> &lt;<?= $email ?>&gt;<br>
                    Please discard this email if it is not meant for you
                    <br>
                    <br>
                    Copyright &copy; <?= date("Y"); ?> Webspire 2026
                </td>
            </tr>
        </table>
    </div>
    <!-- END FOOTER -->
</div>
