<?php
$topbarFullName = trim($fullName ?? $_SESSION['full_name'] ?? 'User');
?>

<div class="topbar">
    <div class="topbar-left"></div>

    <div class="topbar-center"></div>

    <div class="topbar-right">
        <div class="topbar-user">
            👤 <?php echo htmlspecialchars($topbarFullName); ?>
        </div>

        <a href="logout.php" class="topbar-logout">Logout</a>
    </div>
</div>