= $this->extend('layout/management_layout') ?> = $this->section('content') ?>
| ID | Type | Title | Amount | Parent | Status | Invoice | Due |
|---|---|---|---|---|---|---|---|
| No charges | |||||||
| #= (int)$r['id'] ?> | 0); $isDed = ($ctype === 'deduct') || ((float)($r['amount'] ?? 0) < 0); $badge = $isAdd ? 'bg-success' : ($isDed ? 'bg-danger' : 'bg-secondary'); $label = $isAdd ? 'Add' : ($isDed ? 'Deduct' : ucfirst($ctype ?: '')); ?> = esc($label) ?> |
= esc($r['title']) ?>
= esc($r['description']) ?>
|
$= number_format((float)$r['amount'], 2) ?> | = esc($r['parent_name'] ?: ('ID: ' . (int)$r['parent_id'])) ?> | 'bg-info', 'applied' => 'bg-success', 'void' => 'bg-danger'][$r['status']] ?? 'bg-light'; ?> = ucfirst($r['status']) ?> | = !empty($r['invoice_number']) ? esc($r['invoice_number']) : ($r['invoice_id'] ? '#' . (int)$r['invoice_id'] : '—') ?> | = !empty($r['due_date']) ? esc(local_date($r['due_date'], 'm-d-Y')) : '—' ?> |
| Total Amount | $= number_format($pageTotal, 2) ?> | ||||||