<?php
require_once("includes/auth.php");
requireSubAdminLogin();
$user = subAdminData();
?>
<!DOCTYPE html>
<html>
<head>
    <title>Sub Admin Panel</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="assets/css/style.css" rel="stylesheet">
</head>
<body>

<div class="app-shell">
    <div class="top-header">
        <div>
            <h3><?= htmlspecialchars($pageTitle ?? 'Dashboard') ?></h3>
            <p><?= htmlspecialchars($user['name']) ?></p>
        </div>
        <a href="profile.php" class="avatar">
            <?= strtoupper(substr($user['name'], 0, 1)) ?>
        </a>
    </div>

    <main class="content">