<?php
$currentPage = basename($_SERVER['PHP_SELF']);
?>

<div class="sidebar">

<h2><i class="fa-solid fa-map-location-dot"></i> GoMAPS Admin</h2>

<a href="dashboard.php"
class="<?= $currentPage=='dashboard.php'?'active':'' ?>">
<i class="fa-solid fa-chart-line"></i>
<span>Dashboard</span>
</a>

<a href="view_search_logs.php"
class="<?= $currentPage=='view_search_logs.php'?'active':'' ?>">
<i class="fa-solid fa-magnifying-glass-chart"></i>
<span>View Search Logs</span>
</a>

<a href="blocked_ips.php"
class="<?= $currentPage=='blocked_ips.php'?'active':'' ?>">
<i class="fa-solid fa-ban"></i>
<span>Blocked IPs</span>
</a>

<a href="recommend_sponsored.php"
class="<?= $currentPage=='recommend_sponsored.php'?'active':'' ?>">
<i class="fa-solid fa-robot"></i>
<span>Auto Recommend</span>
</a>

<a href="add_sponsored.php"
class="<?= $currentPage=='add_sponsored.php'?'active':'' ?>">
<i class="fa-solid fa-plus-circle"></i>
<span>Add Sponsored</span>
</a>

<a href="view_sponsored.php"
class="<?= $currentPage=='view_sponsored.php'?'active':'' ?>">
<i class="fa-solid fa-list-check"></i>
<span>View Sponsored</span>
</a>

<a href="activity_logs.php"
class="<?= $currentPage=='activity_logs.php'?'active':'' ?>">
<i class="fa-solid fa-clock-rotate-left"></i>
<span>Activity Logs</span>
</a>

<a href="logout.php">
<i class="fa-solid fa-right-from-bracket"></i>
<span>Logout</span>
</a>

</div>