<?php require_once __DIR__ . '/includes/admin_bootstrap.php';
$adminTitle='Dashboard';
$news = ugfx_get_news(20);
$events = ugfx_get_events(20);
$requests = ugfx_read_json($ugfx['storage']['requests'], []);
$messages = ugfx_chat_messages();
$applications = ugfx_read_json($ugfx['storage']['applications'], []);
$pages = ugfx_get_pages(false);
$friends = ugfx_get_friends(50);
include __DIR__ . '/includes/admin_header.php';
?>
<div class="row g-4 mb-4">
  <div class="col-md-3"><div class="ugfx-card p-4"><div class="ugfx-micro-label">NEWS</div><h2><?= count($news) ?></h2></div></div>
  <div class="col-md-3"><div class="ugfx-card p-4"><div class="ugfx-micro-label">EVENTS</div><h2><?= count($events) ?></h2></div></div>
  <div class="col-md-3"><div class="ugfx-card p-4"><div class="ugfx-micro-label">REQUESTS</div><h2><?= count($requests) ?></h2></div></div>
  <div class="col-md-3"><div class="ugfx-card p-4"><div class="ugfx-micro-label">CHAT</div><h2><?= count($messages) ?></h2></div></div>
  <div class="col-md-4"><div class="ugfx-card p-4"><div class="ugfx-micro-label">APPLICATIONS</div><h2><?= count($applications) ?></h2></div></div>
  <div class="col-md-4"><div class="ugfx-card p-4"><div class="ugfx-micro-label">CUSTOM PAGES</div><h2><?= count($pages) ?></h2></div></div>
  <div class="col-md-4"><div class="ugfx-card p-4"><div class="ugfx-micro-label">FRIENDS RAIL</div><h2><?= count($friends) ?></h2></div></div>
</div>
<div class="row g-4">
  <div class="col-lg-7"><div class="ugfx-card p-4"><h3>Phase 2 status</h3><p class="text-secondary mb-0">The homepage has been tightened so it pushes live content and community actions without repeating the navigation. Join the Team, friends/supporters, and custom pages are now included in the public build, with matching admin shells added for applications, pages, and friends.</p></div></div>
  <div class="col-lg-5"><div class="ugfx-card p-4"><h3>Next ideal pass</h3><p class="text-secondary mb-0">Deeper CRUD for news, schedule and friends, richer homepage storytelling blocks, and the final chat moderation upgrade with more emoji, GIF and scheduled promo controls.</p></div></div>
</div>
<?php include __DIR__ . '/includes/admin_footer.php'; ?>
