<?php
// pastikan variabel tersedia
if (!function_exists('esc')) {
    function esc($v) { return htmlspecialchars((string)$v, ENT_QUOTES, 'UTF-8'); }
}
$namaUser = $namaUser ?? getSession('pengurus_nama') ?? "Pengurus";
?>

<nav class="navbar navbar-light bg-light shadow-sm px-3">

    <!-- Tombol Toggle Sidebar -->
    <button id="toggleSidebar" class="btn btn-outline-success me-3">
        <i class="fa fa-bars"></i>
    </button>

    <div class="ms-auto d-flex align-items-center gap-3">
        <span class="text-muted">Halo, <?= esc($namaUser) ?></span>

        <!-- Fullscreen Button -->
        <button id="btnFullscreen" class="btn btn-outline-secondary btn-sm">
            <i id="iconFullscreen" class="fa fa-expand"></i>
        </button>
    </div>

</nav>
