<?php
// include("includes/session.php");
$designation = $_SESSION['designation'];  // Fetch the logged-in user's designation from session
// print_r($designation);
// Check if the designation is Store Manager or Department Manager
$showHierarchy = ($designation == 'Store Manager' || $designation == 'Department Manager');
?>
<div class="sidebar" id="sidebar">
    <div class="sidebar-inner slimscroll">
        <div id="sidebar-menu" class="sidebar-menu">
            <nav class="greedys sidebar-horizantal">
                <ul class="list-inline-item list-unstyled links">
                    <li>
                        <a href="logout.php"><i class="fe fe-power"></i> <span>Logout</span></a>
                    </li>
                </ul>
            </nav>
            <ul class="sidebar-vertical">
                <!-- Main -->
                <li class="menu-title"><span>Main</span></li>
                <li>
                    <a href="dashboard.php"><i class="fe fe-users"></i> <span>Dashboard

                <!-- Profile -->
                <li>
                    <a href="profile.php"><i class="fe fe-user"></i> <span>My Profile</span></a>
                </li>
                

                <!-- Manage Lower Employees -->
                
        

                <!-- Attendance -->
                <li>
                    <a href="my_attendance.php"><i class="fe fe-calendar"></i> <span>My Attendance</span></a>
                </li>
                <li>
                    <a href="employee_hierarchy.php"><i class="fe fe-users"></i> <span>My Hierarchy </span></a>
                </li>
           <?php if ($showHierarchy): ?>
                     <li>
                    <a href="my_lower_heirarchy.php"><i class="fe fe-users"></i> <span>My Lower Hierarchy </span></a>
                </li>
                <?php endif; ?>
               
                <li>
                    <a href="my_sales.php"><i class="fe fe-users"></i> <span>My Sales Record </span></a>
                </li>
            </ul>
        </div>
    </div>
</div>
