= $this->extend('layout/management_layout') ?> = $this->section('content') ?>
| Code | Type | Value | Max Uses | Times Used | Validity | Status | Actions |
|---|---|---|---|---|---|---|---|
| = esc($v['code']) ?> | = esc(ucfirst($v['discount_type'])) ?> | = esc($v['discount_type'] === 'percent' ? $v['discount_value'] . '%' : '$' . number_format($v['discount_value'], 2)) ?> | = esc($v['max_uses'] ?? '∞') ?> | = esc($v['times_used']) ?> | = esc($formatValidityDate($v['valid_from'] ?? '')) ?> → = esc($formatValidityDate($v['valid_until'] ?? '')) ?> | = $v['is_active'] ? 'Active' : 'Inactive' ?> | Edit |