Release v1.5.1

This commit is contained in:
AudioCore Bot
2026-04-01 14:12:17 +00:00
parent dc53051358
commit 9deabe1ec9
50 changed files with 10775 additions and 5637 deletions

View File

@@ -1,8 +1,11 @@
<?php
use Core\Services\Plugins;
$pageTitle = $title ?? 'Store Customers';
$customers = $customers ?? [];
$currency = (string)($currency ?? 'GBP');
$q = (string)($q ?? '');
$reportsEnabled = Plugins::isEnabled('advanced-reporting');
ob_start();
?>
<section class="admin-card customers-page">
@@ -20,6 +23,9 @@ ob_start();
<a href="/admin/store/settings" class="btn outline small">Settings</a>
<a href="/admin/store/orders" class="btn outline small">Orders</a>
<a href="/admin/store/customers" class="btn outline small">Customers</a>
<?php if ($reportsEnabled): ?>
<a href="/admin/store/reports" class="btn outline small">Sales Reports</a>
<?php endif; ?>
</div>
<form method="get" action="/admin/store/customers" class="customers-search">
@@ -39,7 +45,9 @@ ob_start();
<tr>
<th>Customer</th>
<th>Orders</th>
<th>Revenue</th>
<th>Before Fees</th>
<th>Fees</th>
<th>After Fees</th>
<th>Latest Order</th>
<th>Last Seen</th>
</tr>
@@ -70,7 +78,9 @@ ob_start();
<?php endif; ?>
</td>
<td class="num"><?= (int)($customer['order_count'] ?? 0) ?></td>
<td class="num"><?= htmlspecialchars($currency, ENT_QUOTES, 'UTF-8') ?> <?= number_format((float)($customer['revenue'] ?? 0), 2) ?></td>
<td class="num"><?= htmlspecialchars($currency, ENT_QUOTES, 'UTF-8') ?> <?= number_format((float)($customer['before_fees'] ?? 0), 2) ?></td>
<td class="num"><?= htmlspecialchars($currency, ENT_QUOTES, 'UTF-8') ?> <?= number_format((float)($customer['paypal_fees'] ?? 0), 2) ?></td>
<td class="num"><?= htmlspecialchars($currency, ENT_QUOTES, 'UTF-8') ?> <?= number_format((float)($customer['after_fees'] ?? 0), 2) ?></td>
<td>
<?php if ($lastOrderId > 0): ?>
<a href="/admin/store/order?id=<?= $lastOrderId ?>" class="order-link">
@@ -206,8 +216,10 @@ ob_start();
@media (max-width: 980px) {
.customers-table th:nth-child(3),
.customers-table td:nth-child(3),
.customers-table th:nth-child(5),
.customers-table td:nth-child(5) { display:none; }
.customers-table th:nth-child(4),
.customers-table td:nth-child(4),
.customers-table th:nth-child(7),
.customers-table td:nth-child(7) { display:none; }
}
@media (max-width: 700px) {