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

<?= $this->section('content') ?>
<h2 style="font-size:22px; font-weight:bold;">Admission Under Review</h2>
<p style="font-size:16px;">Dear <?= $parentName ?>,</p>

<?php if (is_array($studentName)): ?>
    <p style="font-size:16px;">
        Thank you for submitting the enrollment application for the following <?= count($studentName) ?> students:
    </p>
    <ul style="font-size:16px;">
        <?php foreach ($studentName as $student): ?>
            <li><?= $student ?></li>
        <?php endforeach; ?>
    </ul>
<?php else: ?>
    <p style="font-size:16px;">
        Thank you for submitting the enrollment application for <?= $studentName ?>.
    </p>
<?php endif; ?>

<p style="font-size:16px;">
    Your application<?= is_array($studentName) ? 's are' : ' is' ?> currently under review by our admissions committee. This process typically takes 1–2 business days.
</p>
<p style="font-size:16px;">
    You will be notified immediately once a decision has been made.
</p>
<p style="font-size:16px;">
    You can check your application status at any time through the parent portal.
</p>
<p>
    <!-- make sure helper('url') is loaded -->
<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 style="font-size:16px;">
    Best regards,<br>Admissions Team
</p>

<?= $this->endSection() ?>