Edit file File name : _header.php Content :<?php // This is a shared header component require_once '_helpers.php'; // Since there's no login, we can't get a user name from session. // We'll use a default or fetch an admin name. $user_name = 'Admin User'; $page_title_raw = basename($_SERVER['PHP_SELF'], ".php"); $page_title = ''; if ($page_title_raw === 'invoice-details' && isset($_GET['id'])) { $numeric_id = preg_replace('/[^0-9]/', '', $_GET['id']); $page_title = 'Invoice #' . htmlspecialchars($numeric_id); } else { $page_title = ucwords(str_replace('-', ' ', $page_title_raw)); } if ($page_title === 'Index') { $page_title = 'Dashboard'; // Default page is now dashboard } ?> <header class="sticky top-0 z-10 flex h-16 items-center justify-between border-b bg-white/80 backdrop-blur-sm px-6"> <div class="flex items-center gap-2"> <button id="sidebar-toggle" class="p-2 -ml-2 rounded-full hover:bg-slate-100 lg:hidden"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="h-6 w-6"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><line x1="9" x2="9" y1="3" y2="21"/></svg> </button> <h1 id="page-title" class="text-xl font-semibold text-slate-800"><?php echo htmlspecialchars($page_title); ?></h1> </div> <div class="flex items-center gap-4"> <div class="flex items-center gap-2"> <div class="h-8 w-8 rounded-full bg-primary/10 text-primary flex items-center justify-center font-semibold text-sm"> <?php echo htmlspecialchars(get_initials($user_name)); ?> </div> <span class="font-medium text-sm hidden sm:inline-block"><?php echo htmlspecialchars($user_name); ?></span> </div> <!-- Logout button is removed as there is no session to log out from --> </div> </header> Save