= $this->extend('layout/main_layout') ?>
= $this->section('content') ?>
attendance['timezone'] ?? user_timezone());
} catch (Throwable $e) {
$displayTz = user_timezone();
}
}
if ($raw instanceof DateTimeInterface) {
$dt = new DateTime('@' . $raw->getTimestamp());
return $dt->setTimezone(new DateTimeZone($displayTz));
}
$s = trim((string)$raw);
if ($s === '' || preg_match('/^0{4}-0{2}-0{2}/', $s)) return null;
$srcTz = new DateTimeZone($sourceTz);
$outTz = new DateTimeZone($displayTz);
// Try full datetime first
$dt = DateTime::createFromFormat('Y-m-d H:i:s', $s, $srcTz);
if ($dt !== false) {
return $dt->setTimezone($outTz);
}
// Try date-only
$d = DateTime::createFromFormat('Y-m-d', $s, $srcTz);
if ($d !== false) {
if ($defaultTime) {
[$H, $i, $sec] = array_map('intval', explode(':', $defaultTime));
$d->setTime($H, $i, $sec);
} // else leave 00:00:00
return $d->setTimezone($outTz);
}
// Fallback parser
try {
$fallback = new DateTime($s, $srcTz);
return $fallback->setTimezone($outTz);
} catch (Throwable $e) {
return null;
}
}
}
if (!function_exists('formatCalendarDateOnly')) {
function formatCalendarDateOnly($raw): ?string
{
if (!$raw) return null;
if ($raw instanceof DateTimeInterface) {
return $raw->format('m-d-Y');
}
$s = trim((string)$raw);
if ($s === '' || preg_match('/^0{4}-0{2}-0{2}/', $s)) return null;
if (preg_match('/^(\d{4})-(\d{2})-(\d{2})/', $s, $m)) {
return $m[2] . '-' . $m[3] . '-' . $m[1];
}
if (preg_match('/^(\d{1,2})[-\/](\d{1,2})[-\/](\d{4})/', $s, $m)) {
return sprintf('%02d-%02d-%04d', (int)$m[1], (int)$m[2], (int)$m[3]);
}
$ts = strtotime($s);
return $ts === false ? null : date('m-d-Y', $ts);
}
}
?>
Invoices and Payments
School Year: = esc($selectedYear) ?>
-
This website release version does not have an option to pay your invoice online.
All payments this school year will be made in person on first day of school
(= esc($deadlineDisplay ?: 'TBD') ?>).
-
Cash, checks and debit/credit cards are all accepted forms of payment. However, if you elect to pay in
installments, only cash and checks will be accepted.
-
Need help with tuition? Request financial aid.
| # |
Invoice Number |
Issue Date |
Due Date |
Description |
Balance |
Last Payment Amount |
Last Payment Date |
Status |
Actions |
$invoice): ?>
| = (int)$index + 1 ?> |
= esc($invoice['invoice_number']) ?> |
= $issueDt ? esc($issueDt->format('m-d-Y h:i A')) : '—' ?> |
= $dueDateDisplay ? esc($dueDateDisplay) : '—' ?> |
= esc($invoice['description'] ?? '') ?: '—' ?> |
$= number_format((float)($invoice['balance'] ?? 0), 2) ?> |
$= number_format((float)($invoice['last_paid_amount'] ?? 0), 2) ?> |
= $lastPay ? esc($lastPay->format('m-d-Y h:i A')) : '—' ?> |
= esc($invoice['status'] ?? '') ?> |
View/Print PDF
|
| Event |
Student |
Fee |
Status |
| = esc($eventName) ?> |
= esc($studentName ?: '—') ?> |
$= number_format((float)($charge['event_amount'] ?? 0), 2) ?> |
= $paid ? 'Paid' : 'Unpaid' ?>
|
No invoice found for this school year.
= $this->endSection() ?>
= $this->section('scripts') ?>
= $this->endSection() ?>