<?php
require __DIR__ . '/../layout/header.php';
require __DIR__ . '/../layout/sidebar.php';
?>

<div class="main">

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

    <div class="grid">

        <div class="card">
            <h4>Total Iuran</h4>
            <h2>Rp <?= number_format($iuran) ?></h2>
        </div>

        <div class="card">
            <h4>Kas Vendor</h4>
            <h2>Rp <?= number_format($kas_masuk) ?></h2>
        </div>

        <div class="card">
            <h4>Pengeluaran</h4>
            <h2>Rp <?= number_format($kas_keluar) ?></h2>
        </div>

        <div class="card" style="background:#2563eb; color:white;">
            <h4>Saldo Akhir</h4>
            <h2>Rp <?= number_format($saldo) ?></h2>
        </div>

    </div>

</div>

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