16235369cb
Highlights include configurable menus, specials, cart/checkout, taxes, customer accounts with email 2FA, newsletters, analytics, refunds, PDF/CSV exports, Square/Mailgun adapters, and optional MySQL migration. See README.md for setup and production configuration. Verified PHP/JavaScript syntax, responsive layouts, registration, 2FA, checkout, dashboard workflows, settings persistence, and PDF generation. Real Square, Mailgun, and MySQL connections require credentials/server access. Square implementation follows the official Payments API and Refunds API.
29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<aside class="admin-sidebar">
|
|
<a class="admin-brand" href="/admin">
|
|
<span class="brand-mark">FB</span>
|
|
<span>
|
|
<strong><?= e($config->get('business.name')) ?></strong>
|
|
<small>Operations</small>
|
|
</span>
|
|
</a>
|
|
<nav class="admin-nav" aria-label="Dashboard navigation">
|
|
<a class="<?= $adminPage === 'dashboard' ? 'is-active' : '' ?>" href="/admin">Overview</a>
|
|
<a class="<?= $adminPage === 'orders' ? 'is-active' : '' ?>" href="/admin/orders">Orders</a>
|
|
<a class="<?= $adminPage === 'menu' ? 'is-active' : '' ?>" href="/admin/menu">Menu</a>
|
|
<a class="<?= $adminPage === 'specials' ? 'is-active' : '' ?>" href="/admin/specials">Specials</a>
|
|
<a class="<?= $adminPage === 'newsletters' ? 'is-active' : '' ?>" href="/admin/newsletters">Newsletters</a>
|
|
<?php if (($currentUser['role'] ?? '') === 'admin'): ?>
|
|
<a class="<?= $adminPage === 'users' ? 'is-active' : '' ?>" href="/admin/users">Users & Staff</a>
|
|
<a class="<?= $adminPage === 'settings' ? 'is-active' : '' ?>" href="/admin/settings">Settings</a>
|
|
<?php endif; ?>
|
|
</nav>
|
|
<div class="admin-user">
|
|
<span class="avatar"><?= e(strtoupper(substr((string) ($currentUser['full_name'] ?? 'S'), 0, 1))) ?></span>
|
|
<span>
|
|
<strong><?= e($currentUser['full_name'] ?? '') ?></strong>
|
|
<small><?= e(ucfirst((string) ($currentUser['role'] ?? 'staff'))) ?></small>
|
|
</span>
|
|
</div>
|
|
</aside>
|
|
|