<?php
$username = $_SESSION['user_name'] ?? 'User';
?>

<div class="topbar">
    <div class="topbar-left">
        <span class="page-title">Inventory System</span>
    </div>

    <div class="topbar-right">
        <span class="user-name"><?= htmlspecialchars($username) ?></span>
        |
        <a href="/logout.php" class="logout">Logout</a>
    </div>
</div>
