fix school year and enrollment steps
Tests / PHPUnit (push) Failing after 58s

This commit is contained in:
root
2026-08-15 21:15:05 -04:00
parent 4603d9ced2
commit 3cbfc40934
18 changed files with 1142 additions and 163 deletions
+48 -11
View File
@@ -1,12 +1,27 @@
<?= $this->extend('layout/email_layout') ?>
<?= $this->section('content') ?>
<h2 style="font-size:22px; font-weight:bold;">Admission Under Review</h2>
<?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;">
Thank you for submitting the enrollment application for the following <?= count($studentName) ?> students:
<?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): ?>
@@ -15,18 +30,40 @@
</ul>
<?php else: ?>
<p style="font-size:16px;">
Thank you for submitting the enrollment application for <?= $studentName ?>.
<?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 12 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;">
Your application<?= is_array($studentName) ? 's are' : ' is' ?> currently under review by our admissions committee. This process typically takes 12 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.
You can check your <?= $isReEnrollment ? 're-enrollment' : 'application' ?> status at any time through the parent portal.
</p>
<p>
<!-- make sure helper('url') is loaded -->
@@ -42,4 +79,4 @@
Best regards,<br>Admissions Team
</p>
<?= $this->endSection() ?>
<?= $this->endSection() ?>