<?php
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
$page_title = $page_title ?? 'MiniBank';
$basePath = rtrim(dirname($_SERVER['SCRIPT_NAME'] ?? ''), '/');
?>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= htmlspecialchars($page_title) ?></title>
  <link rel="stylesheet" href="<?= $basePath ?>/base.css?v=2">
</head>
<body>
    
    <br><br>
 <div class="topbar d-none d-md-flex">
  <div class="brand">SurexGate</div>
  <nav class="nav">
    <a href="dashboard.php">Dashboard</a>
    <a href="transactions.php">Transactions</a>
    <a href="settings.php">Settings</a>
    <a href="payouts.php">Payouts</a>
    <a href="logout.php">Logout</a>
  </nav>
</div>
