<?php require_once __DIR__ . '/includes/admin_bootstrap.php';
ugfx_require_permission('requests'); $adminTitle='Requests'; include __DIR__ . '/includes/admin_header.php'; $items=ugfx_read_json($ugfx['storage']['requests'], []); ?>
<div class="ugfx-card p-4"><h3>Request queue</h3><div class="table-responsive"><table class="table ugfx-table"><thead><tr><th>Name</th><th>Artist</th><th>Song</th><th>Time</th></tr></thead><tbody><?php foreach (array_reverse($items) as $item): ?><tr><td><?= htmlspecialchars($item['name'] ?? '') ?></td><td><?= htmlspecialchars($item['artist'] ?? '') ?></td><td><?= htmlspecialchars($item['song'] ?? '') ?></td><td><?= htmlspecialchars($item['created_at'] ?? '') ?></td></tr><?php endforeach; ?></tbody></table></div></div>
<?php include __DIR__ . '/includes/admin_footer.php'; ?>
