add financial aid decision for parent
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Submitted</th>
|
<th>Submitted</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
|
<th>Decision</th>
|
||||||
<th>Requested</th>
|
<th>Requested</th>
|
||||||
<th>Approved amount</th>
|
<th>Approved amount</th>
|
||||||
<th>Note</th>
|
<th>Note</th>
|
||||||
@@ -45,9 +46,25 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($requests as $row): ?>
|
<?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>
|
<tr>
|
||||||
<td><?= esc($row['created_at'] ?? '') ?></td>
|
<td><?= esc($row['created_at'] ?? '') ?></td>
|
||||||
<td><?= esc($row['status'] ?? '') ?></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['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><?= $row['admin_amount'] !== null && $row['admin_amount'] !== '' ? '$' . number_format((float) $row['admin_amount'], 2) : '—' ?></td>
|
||||||
<td><?= esc($row['admin_note'] ?? '') ?></td>
|
<td><?= esc($row['admin_note'] ?? '') ?></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user