diff --git a/views/admin/coupons/form.php b/views/admin/coupons/form.php new file mode 100644 index 0000000..ff4bf17 --- /dev/null +++ b/views/admin/coupons/form.php @@ -0,0 +1,62 @@ +
Create a discount code.
+Percentage or fixed discounts with limits and windows.
+No coupons yet.
| Code | Discount | Min cart | Redemptions | Window | Status | |
|---|---|---|---|---|---|---|
| = e($coupon['code']) ?> | ++ + = (int) $coupon['value'] ?>% + + = e(formatMoney((int) $coupon['value'], $currency)) ?> + + | += e(formatMoney((int) $coupon['minSubtotalCents'], $currency)) ?> | ++ = (int) $coupon['redeemedCount'] ?>= $coupon['maxRedemptions'] !== null ? ' / ' . (int) $coupon['maxRedemptions'] : '' ?> + | ++ = $coupon['startsAt'] ? e(substr($coupon['startsAt'], 0, 10)) : '-' ?> + → + = $coupon['expiresAt'] ? e(substr($coupon['expiresAt'], 0, 10)) : '-' ?> + | += (int) $coupon['isActive'] === 1 ? 'active' : 'off' ?> | ++ + | +
= count($pending) ?> awaiting moderation.
+Nothing to moderate.
= nl2br(e($review['body'])) ?>
+ +None yet.
| Product | Rating | Title | Author |
|---|---|---|---|
| = e($review['productName']) ?> | += str_repeat('*', (int) $review['rating']) ?> | += e($review['title']) ?> | += e($review['authorName']) ?> | +