<?php
require_once __DIR__ . '/../app/bootstrap.php';
use App\Core\Auth;
Auth::requireRole(['admin','staff']);
$pageTitle = 'Complete Feature Map | Admin';
$groups = ph_admin_groups();
require_once ROOT_PATH . '/app/Layouts/admin_header.php';
?>
<h1 class="h3 mb-3">Complete Project Option Map</h1>
<p class="text-muted">Every major requested option is mapped to an admin module, database table, panel page, API endpoint, cron file or documentation page.</p>
<?php foreach($groups as $group=>$items): ?><div class="card module-card mb-4"><div class="card-header bg-white"><strong><?= e($group) ?></strong></div><div class="table-responsive"><table class="table mb-0 align-middle"><thead><tr><th>Option</th><th>Admin URL</th><th>Description</th></tr></thead><tbody><?php foreach($items as $item): ?><tr><td><strong><?= e($item[1]) ?></strong></td><td><code>admin/<?= e($item[2]) ?></code></td><td><?= e($item[4] ?? '') ?></td></tr><?php endforeach; ?></tbody></table></div></div><?php endforeach; ?>
<?php require_once ROOT_PATH . '/app/Layouts/admin_footer.php'; ?>
