<?php
// session_start();
if (isset($_SESSION["validated"]) && $_SESSION["validated"] != 'yes') {
	echo "<script>document.location = 'login.php';</script>";
}
?>
<nav class="sidebar">
    <div class="sidebar-header">
        <a href="index.php" class="sidebar-brand">
            <img src="assets/images/pe-logo.png"></span>
        </a>
        <div class="sidebar-toggler not-active">
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>
    <div class="sidebar-body">
        <ul class="nav">
            <li class="nav-item nav-category">Main</li>
            <li class="nav-item">
                <a href="index.php" class="nav-link">
                    <i class="link-icon" data-feather="box"></i>
                    <span class="link-title">Dashboard</span>
                </a>
            </li>
            <li class="nav-item nav-category">Manage Reports</li>
            <li class="nav-item">
                <a href="manage-report.php" class="nav-link">
                    <i class="link-icon" data-feather="calendar"></i>
                    <span class="link-title">Manage Reports</span>
                </a>
            </li>
            <?php if ($_SESSION['role'] == 'Admin'){?>
            <li class="nav-item">
                <a href="add-report.php" class="nav-link">
                    <i class="link-icon" data-feather="credit-card"></i>
                    <span class="link-title">Add Reports</span>
                </a>
            </li>

            <li class="nav-item">
                <a href="add-bulk-report.php" class="nav-link">
                    <i class="link-icon" data-feather="credit-card"></i>
                    <span class="link-title">Add Bulk Reports</span>
                </a>
            </li>

            <li class="nav-item nav-category">Manage Users</li>
            <li class="nav-item">
                <a href="manage-user.php" class="nav-link">
                    <i class="link-icon" data-feather="users"></i>
                    <span class="link-title">Manage Users</span>
                </a>
            </li>
            <li class="nav-item">
                <a href="add-user.php" class="nav-link">
                    <i class="link-icon" data-feather="user"></i>
                    <span class="link-title">Add User</span>
                </a>
            </li>
            <li class="nav-item nav-category">Account</li>
            <li class="nav-item">
                <a href="settings.php" class="nav-link">
                    <i class="fa fa-gear"></i>
                    <span class="link-title">Settings</span>
                </a>
            </li>
            <?php }?>
        </ul>
    </div>
</nav>