add financial aid decision for parent
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 52s
Tests / PHPUnit (push) Successful in 1m21s

This commit is contained in:
root
2026-08-30 21:24:05 -04:00
parent b689570052
commit cf5314eaf6
+17
View File
@@ -38,6 +38,7 @@
<tr>
<th>Submitted</th>
<th>Status</th>
<th>Decision</th>
<th>Requested</th>
<th>Approved amount</th>
<th>Note</th>
@@ -45,9 +46,25 @@
</thead>
<tbody>
<?php foreach ($requests as $row): ?>
<?php
$status = (string) ($row['status'] ?? '');
$decisionLabel = 'Pending review';
$decisionClass = 'bg-secondary';
if ($status === 'approved') {
$decisionLabel = 'Approved';
$decisionClass = 'bg-success';
} elseif ($status === 'denied') {
$decisionLabel = 'Denied';
$decisionClass = 'bg-danger';
} elseif ($status === 'under_review') {
$decisionLabel = 'Under review';
$decisionClass = 'bg-info text-dark';
}
?>
<tr>
<td><?= esc($row['created_at'] ?? '') ?></td>
<td><?= esc($row['status'] ?? '') ?></td>
<td><span class="badge <?= esc($decisionClass) ?>"><?= esc($decisionLabel) ?></span></td>
<td><?= $row['requested_amount'] !== null && $row['requested_amount'] !== '' ? '$' . number_format((float) $row['requested_amount'], 2) : 'Not specified' ?></td>
<td><?= $row['admin_amount'] !== null && $row['admin_amount'] !== '' ? '$' . number_format((float) $row['admin_amount'], 2) : '—' ?></td>
<td><?= esc($row['admin_note'] ?? '') ?></td>