<?= $this->extend('layout/email_layout') ?>

<?= $this->section('email_content') ?>
<h2>Withdrawal Request Under Review</h2>

<p>Dear <?= esc($parentName ?? 'Parent') ?>,</p>

<?php if (isset($studentName) && is_array($studentName) && !empty($studentName)): ?>
    <p>We have received your request to withdraw the following <?= count($studentName) ?> students from our school:</p>
    <ul style="padding-left:20px; font-size:14px;">
        <?php foreach ($studentName as $name): ?>
            <li><?= esc($name) ?></li>
        <?php endforeach; ?>
    </ul>
<?php else: ?>
    <p>We have received your request to withdraw <?= esc($studentName ?? 'your student') ?> from our school.</p>
<?php endif; ?>

<p>This request is currently under review by our administration. We will contact you within 3–5 business days regarding the next steps.</p>

<p>If you have any questions or need to provide additional information, please contact our registrar's office.</p>

<p style="margin:16px 0;">
    <a href="<?= base_url() ?>" target="_blank" rel="noopener"
        style="display:inline-block; padding:10px 16px; text-decoration:none; border-radius:6px;
            background:#198754; color:#ffffff; font-weight:600; font-size:16px;">
        Access My Account
    </a>
</p>

<p>Best regards,<br>Registrar's Office</p>
<?= $this->endSection() ?>