<?php
$title = "Dashboard Sekretaris";
require __DIR__ . '/../layout/header.php';
require __DIR__ . '/../layout/sidebar.php';
?>

<div class="main">

    <div class="header">
        Dashboard Sekretaris
    </div>

    <div class="hero">
        <h2>Halo, <?= $_SESSION['user']['nama'] ?></h2>
        <p>Kelola data organisasi dari sini</p>
    </div>

    <div class="grid">

        <!-- MEMBER WAITING -->
        <div class="card">
            <h3>Member Menunggu</h3>
            <p><?= $waiting ?></p>
            <a href="/membership/approve-member" class="btn btn-primary">
                Approve Sekarang
            </a>
        </div>

        <!-- MEMBER AKTIF -->
        <div class="card">
            <h3>Member Aktif</h3>
            <p><?= $active ?></p>
        </div>

        <!-- EVENT -->
        <div class="card">
            <h3>Total Event</h3>
            <p><?= $event ?></p>
            <a href="/membership/event" class="btn btn-primary">
                Kelola Event
            </a>
        </div>

    </div>

</div>

<?php require __DIR__ . '/../layout/footer.php'; ?>