<!doctype html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?= esc($title ?? 'Buku Kas Umum') ?></title>
    <link rel="stylesheet" href="<?= base_url('css/app.css') ?>">
</head>
<body>
    <header class="topbar">
        <div class="brand">
            <span class="brand-mark">BK</span>
            <div>
                <p class="eyebrow">Aplikasi Keuangan</p>
                <h1>Buku Kas Umum</h1>
            </div>
        </div>
        <nav>
            <a class="nav-link" href="<?= site_url('kas') ?>">Dashboard</a>
            <a class="nav-link" href="<?= site_url('kas/laporan') ?>">Laporan</a>
            <a class="button button-light" href="<?= site_url('kas/create') ?>">Tambah Transaksi</a>
            <span class="admin-name">Admin: <?= esc(session('admin_nama')) ?></span>
            <a class="button button-secondary" href="<?= site_url('logout') ?>">Logout</a>
        </nav>
    </header>

    <main class="page">
        <?= $this->renderSection('content') ?>
    </main>
    <?= $this->renderSection('scripts') ?>
</body>
</html>
