<?php
// includes/header.php
// This file contains the HTML for the dashboard header.
// It assumes $school_name, $school_logo_path, $photo, $username, and $role_name are defined in the calling script.
?>

<header class="header">
    <button class="menu-toggle" id="menuToggle">
        <i class="fas fa-bars"></i>
    </button>
    <div class="school-info">
        <img src="<?php echo htmlspecialchars($school_logo_path); ?>" alt="<?php echo htmlspecialchars($school_name); ?> Logo">
        <h1><?php echo htmlspecialchars($school_name); ?></h1>
    </div>
    <div class="header-right">
        <div class="language-select">
            <select>
                <option>🇬🇧 English</option>
                <option>🇺🇬 Luganda</option>
            </select>
        </div>
        <div class="search-bar">
            <i class="fas fa-search"></i>
            <input type="text" placeholder="Search students/data">
        </div>
        <div class="notifications">
            <i class="fas fa-bell"></i>
            <span class="badge">3</span> <!-- This badge count would ideally be dynamic -->
        </div>
        <div class="user-profile">
            <img src="<?php echo htmlspecialchars($photo); ?>" alt="User Photo">
            <div>
                <div class="user-name"><?php echo htmlspecialchars($username); ?></div>
                <div class="user-email">Logged in as: <?php echo htmlspecialchars($role_name); ?></div>
            </div>
            <i class="fas fa-chevron-down"></i>
        </div>
    </div>
</header>
