<?php
// $u must be set by the including page (current logged-in user array)
?>
<div class="admin-topbar">
  <div class="brand">Delmas <span>Careers</span> Admin</div>
  <div>
    <span class="small">Signed in as <strong><?= h($u['name']) ?></strong> (<?= h($u['role']) ?>)</span>
    <a href="index.php">Jobs</a>
    <?php if ($u['role'] === 'superadmin'): ?><a href="users.php">Manage Accounts</a><?php endif; ?>
    <a href="https://delmasapparelsbd.com/career.php" target="_blank">View Career Page</a>
    <a href="logout.php">Logout</a>
  </div>
</div>
<script>document.addEventListener('contextmenu', e => e.preventDefault());</script>
