<?php require_once __DIR__ . '/../auth.php'; ?>
<?php $appName = app_setting($pdo, 'app_name', 'I Am Yielded Men'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title><title><?php echo isset($pageTitle) ? h($pageTitle) : $appName; ?></title></title>
  <link rel="stylesheet" href="css/styles.css" />
</head>
<body>
  <header class="topbar">
    <div class="container topbar-inner">
      <a href="dashboard.php" class="brand">
        <img src="/men/images/yvmlogo.png" alt="yvmlogo.png" style="height:42px;">
<span>I Am Yielded Men</span>
      </a>
      <div class="btn-row" style="margin-top:0;">
        <div class="user-pill">Welcome, <?php echo h($_SESSION['username'] ?? 'Brother'); ?></div>
        <a class="btn btn-danger" href="logout.php">Logout</a>
      </div>
    </div>
  </header>
