= $this->extend('layout/main_layout') ?> = $this->section('styles') ?> = $this->endSection() ?> = $this->section('content') ?> attendance['timezone'] ?? user_timezone()); $deadlineObj = (new DateTime($lastDayOfRegistration, new DateTimeZone($tz)))->setTime(23, 59, 59); $nowObj = new DateTime('now', new DateTimeZone($tz)); $deadlinePassed = $nowObj > $deadlineObj; $hasAcceptedSchoolPolicy = (bool) ($hasAcceptedSchoolPolicy ?? false); $familyFinancialSummary = is_array($familyFinancialSummary ?? null) ? $familyFinancialSummary : []; $enrollmentFeeSchedule = is_array($enrollmentFeeSchedule ?? null) ? $enrollmentFeeSchedule : []; $money = static function ($amount) use ($familyFinancialSummary): string { $currency = (string) ($familyFinancialSummary['currency'] ?? '$'); return $currency . number_format((float) $amount, 2); }; $statusBadge = static function (?string $status): string { $status = strtolower(trim((string) $status)); return match ($status) { 'admission under review' => 'admission under review', 'review & decision' => 'review & decision', 'payment pending' => 'payment pending', 'enrolled' => 'enrolled', 'withdraw under review' => 'withdraw under review', 'refund pending' => 'refund pending', 'withdrawn' => 'withdrawn', 'waitlist' => 'waitlist', 'denied' => 'denied', 'not enrolled' => 'not enrolled', default => 'unknown', }; }; $alreadyEnrolledMessage = static fn (?string $status): string => \App\Support\Enrollment\EnrollmentEligibility::alreadyEnrolledMessage($status); $alreadyEnrolledTitle = static fn (?string $status): string => \App\Support\Enrollment\EnrollmentEligibility::alreadyEnrolledTitle($status); $hasSettledEnrollmentStatus = static function (?string $status, ?string $admissionStatus = ''): bool { if (strtolower(trim((string) $admissionStatus)) === 'accepted') { return true; } return in_array(strtolower(trim((string) $status)), [ 'admission under review', 'review & decision', 'payment pending', 'enrolled', 'waitlist', 'withdraw under review', 'refund pending', ], true); }; $enrollableCount = 0; $withdrawableCount = 0; $currentYearTuitionStudentCount = 0; foreach (($students ?? []) as $student) { $studentStatus = strtolower(trim((string) ($student['enrollment_status'] ?? ''))); $studentAdmissionStatus = strtolower(trim((string) ($student['admission_status'] ?? ''))); if ( ! in_array($studentStatus, ['withdrawn', 'withdraw under review', 'refund pending', 'denied', 'not enrolled'], true) && ( in_array($studentStatus, ['admission under review', 'review & decision', 'payment pending', 'enrolled', 'waitlist'], true) || $studentAdmissionStatus === 'accepted' ) ) { $currentYearTuitionStudentCount++; } $evaluation = is_array($student['transition_evaluation'] ?? null) ? $student['transition_evaluation'] : []; if ( (($evaluation['can_enroll'] ?? false) === true || ($evaluation['parent_enrollment_allowed'] ?? false) === true) && !$deadlinePassed && $isEditable ) { $enrollableCount++; } if (($student['enrollment_status'] ?? '') === 'enrolled' && $isEditable) { $withdrawableCount++; } } $studentCount = count($students ?? []); ?>
Enrollment is the process of officially signing up your child for the upcoming school year.
No students found for the selected school year. Please register your kids first.