<?php require_once __DIR__ . '/includes/admin_bootstrap.php';
$adminTitle='Friends';
$items = ugfx_read_json($ugfx['storage']['friends'], []);
include __DIR__ . '/includes/admin_header.php'; ?>
<div class="ugfx-card p-4"><h3>Friends & supporters rail</h3><p class="text-secondary">This Phase 2 build adds a dedicated friends/supporters public page and keeps the list JSON-driven for a later CRUD pass.</p><div class="table-responsive"><table class="table ugfx-table"><thead><tr><th>Name</th><th>Type</th><th>Tagline</th><th>URL</th></tr></thead><tbody><?php foreach ($items as $item): ?><tr><td><?= htmlspecialchars($item['name'] ?? '') ?></td><td><?= htmlspecialchars($item['type'] ?? '') ?></td><td><?= htmlspecialchars($item['tagline'] ?? '') ?></td><td><a href="<?= htmlspecialchars($item['url'] ?? '#') ?>" target="_blank" rel="noopener"><?= htmlspecialchars($item['url'] ?? '') ?></a></td></tr><?php endforeach; ?></tbody></table></div></div>
<?php include __DIR__ . '/includes/admin_footer.php'; ?>
