<?= $this->extend('layouts/admin') ?><?= $this->section('content') ?>
<div class="row g-3">
<?php foreach([['tamu','people','Jumlah Tamu'],['hadir','person-check','RSVP Hadir'],['tidak_hadir','person-x','Tidak Hadir'],['ucapan','chat-heart','Ucapan'],['pengunjung','eye','Pengunjung']] as $card): ?>
<div class="col-6 col-xl"><div class="stat-card h-100"><i class="bi bi-<?= $card[1] ?>"></i><div class="display-6 fw-bold"><?= number_format($stats[$card[0]]) ?></div><span><?= $card[2] ?></span></div></div>
<?php endforeach ?>
</div>
<div class="panel mt-4"><h2 class="h5">Akses Cepat</h2><p class="text-secondary">Kelola detail acara, buat link tamu personal, unggah galeri, dan moderasi ucapan dari menu di samping.</p><a class="btn btn-emerald" href="<?= base_url('admin/tamu/new') ?>"><i class="bi bi-person-plus me-1"></i>Tambah Tamu</a></div>
<?= $this->endSection() ?>
