83 lines
3.7 KiB
PHP
83 lines
3.7 KiB
PHP
<?= $this->extend('layout/email_layout') ?>
|
||
|
||
<?= $this->section('content') ?>
|
||
<?php
|
||
$enrollmentContext = (string) ($enrollmentContext ?? 'first_enrollment');
|
||
$isReEnrollment = $enrollmentContext === 're_enrollment';
|
||
$isMixedEnrollment = $enrollmentContext === 'mixed';
|
||
$studentCount = is_array($studentName) ? count($studentName) : 1;
|
||
$applicationWord = $studentCount === 1 ? 'submission' : 'submissions';
|
||
?>
|
||
<h2 style="font-size:22px; font-weight:bold;">
|
||
<?= $isReEnrollment ? 'Re-Enrollment Received' : ($isMixedEnrollment ? 'Enrollment Submission Received' : 'Admission Under Review') ?>
|
||
</h2>
|
||
<p style="font-size:16px;">Dear <?= $parentName ?>,</p>
|
||
|
||
<?php if (is_array($studentName)): ?>
|
||
<p style="font-size:16px;">
|
||
<?php if ($isReEnrollment): ?>
|
||
Thank you for submitting re-enrollment for the following <?= count($studentName) ?> students:
|
||
<?php elseif ($isMixedEnrollment): ?>
|
||
Thank you for submitting enrollment updates for the following <?= count($studentName) ?> students:
|
||
<?php else: ?>
|
||
Thank you for submitting the enrollment application for the following <?= count($studentName) ?> students:
|
||
<?php endif; ?>
|
||
</p>
|
||
<ul style="font-size:16px;">
|
||
<?php foreach ($studentName as $student): ?>
|
||
<li><?= $student ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<?php else: ?>
|
||
<p style="font-size:16px;">
|
||
<?php if ($isReEnrollment): ?>
|
||
Thank you for submitting re-enrollment for <?= $studentName ?>.
|
||
<?php elseif ($isMixedEnrollment): ?>
|
||
Thank you for submitting the enrollment update for <?= $studentName ?>.
|
||
<?php else: ?>
|
||
Thank you for submitting the enrollment application for <?= $studentName ?>.
|
||
<?php endif; ?>
|
||
</p>
|
||
<?php endif; ?>
|
||
|
||
<?php if ($isReEnrollment): ?>
|
||
<p style="font-size:16px;">
|
||
Your re-enrollment <?= $applicationWord ?> <?= $studentCount === 1 ? 'has' : 'have' ?> been received. The <?= $studentCount === 1 ? 'student is' : 'students are' ?> approved to continue, and the next step is to complete any required payment or follow-up items shown in the parent portal.
|
||
</p>
|
||
<p style="font-size:16px;">
|
||
You will be notified if any additional information is needed.
|
||
</p>
|
||
<?php elseif ($isMixedEnrollment): ?>
|
||
<p style="font-size:16px;">
|
||
Your enrollment <?= $applicationWord ?> <?= $studentCount === 1 ? 'is' : 'are' ?> being processed. New student applications may require admissions review, while returning student re-enrollment may move directly to the next required portal step.
|
||
</p>
|
||
<p style="font-size:16px;">
|
||
You will be notified immediately once an update is available.
|
||
</p>
|
||
<?php else: ?>
|
||
<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>
|
||
<?php endif; ?>
|
||
<p style="font-size:16px;">
|
||
You can check your <?= $isReEnrollment ? 're-enrollment' : '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() ?>
|