<?php if (session_status() === PHP_SESSION_NONE) session_start(); ?>
<div class="topbar">
    <div class="logo-area">
        
        <img src="/images/seven-logo.png" class="site-logo">
        <span class="company-name">Seven Digital - Service Portal</span>
    </div>

    <div class="nav-area">
        <?php if (isset($_SESSION['admin_id'])): ?>
            Welcome, <strong><?= esc($_SESSION['admin_name'] ?? 'Admin') ?></strong>
            <a href="admin-logout.php">Logout</a>
        <?php elseif (isset($_SESSION['staff_id'])): ?>
            Welcome, <strong><?= esc($_SESSION['staff_name'] ?? 'Staff') ?></strong>
            <a href="staff-logout.php">Logout</a>
        <?php endif; ?>
    </div>
</div>