<?php
require_once __DIR__ . '/../../app/helpers/functions.php';
require_once __DIR__ . '/../../app/middleware/auth.php';
$config = require __DIR__ . '/../../app/config/config.php';
$u = current_user();
?>
<nav class="navbar ab-navbar navbar-dark">
  <div class="container-fluid px-4">
    <a class="navbar-brand fw-bold" href="dashboard.php"><i class="bi bi-bank2 me-2"></i><?= e($config['app_name']) ?> Portal</a>
    <div class="d-flex align-items-center gap-3">
      <div class="text-white opacity-75 d-none d-md-block"><i class="bi bi-person-circle me-2"></i><?= e($u['full_name'] ?? '') ?></div>
      <a class="btn btn-sm btn-outline-light" href="logout.php"><i class="bi bi-box-arrow-right me-1"></i>Logout</a>
    </div>
  </div>
</nav>
