<?= $this->extend('layouts/admin') ?>

<?= $this->section('content') ?>

<section>
    <h1>Dashboard Admin</h1>
    
    <div>
        <h3>Biodata</h3>
        <p>Total: <?= esc($biodata_count ?? 0) ?></p>
        <small>Terakhir diupdate: <?= esc($latest_times['biodata'] ?? '-') ?></small>
        <br>
        <a href="<?= base_url('admin/biodata') ?>">Kelola</a>
    </div>

    <div>
        <h3>Pendidikan</h3>
        <p>Total: <?= esc($pendidikan_count ?? 0) ?></p>
        <small>Terakhir diupdate: <?= esc($latest_times['pendidikan'] ?? '-') ?></small>
        <br>
        <a href="<?= base_url('admin/pendidikan') ?>">Kelola</a>
    </div>

    <div>
        <h3>Aktivitas</h3>
        <p>Total: <?= esc($aktivitas_count ?? 0) ?></p>
        <small>Terakhir diupdate: <?= esc($latest_times['aktivitas'] ?? '-') ?></small>
        <br>
        <a href="<?= base_url('admin/aktivitas') ?>">Kelola</a>
    </div>
</section>

<?= $this->endSection() ?>
