diff --git a/views/admin/products/form.php b/views/admin/products/form.php new file mode 100644 index 0000000..6679a82 --- /dev/null +++ b/views/admin/products/form.php @@ -0,0 +1,74 @@ + $product[$key] ?? $fallback; +?> +
Products / = $editing ? 'Edit' : 'New' ?>
+= count($products) ?> products in the catalog.
+| Product | Category | Price | Stock | Status | ||
|---|---|---|---|---|---|---|
|
+
+ |
+ = e($product['name']) ?> /= e($product['slug']) ?> |
+ = e($product['categoryName'] ?? 'Uncategorized') ?> | += e(formatMoney((int) $product['priceCents'], $currency)) ?> | ++ = $stock ?> + | ++ + Active + + Hidden + + | ++ + | +