add financial aid decision for parent
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user