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

<div class="sidebar">

<h2>GoMAPS Admin</h2>

<a href="dashboard.php"
class="<?= $currentPage=='dashboard.php'?'active':'' ?>">
Dashboard
</a>

<a href="view_search_logs.php"
class="<?= $currentPage=='view_search_logs.php'?'active':'' ?>">
View Search Logs
</a>

<a href="blocked_ips.php"
class="<?= $currentPage=='blocked_ips.php'?'active':'' ?>">
Blocked IPs List</a>

<a href="recommend_sponsored.php"
class="<?= $currentPage=='recommend_sponsored.php'?'active':'' ?>">
Auto Recommend
</a>

<a href="add_sponsored.php"
class="<?= $currentPage=='add_sponsored.php'?'active':'' ?>">
Add Sponsored
</a>

<a href="view_sponsored.php"
class="<?= $currentPage=='view_sponsored.php'?'active':'' ?>">
View Sponsored
</a>

<a href="activity_logs.php"
class="<?= $currentPage=='activity_logs.php'?'active':'' ?>">
Activity Logs
</a>

<a href="admin_profile.php"
class="<?= $currentPage=='admin_profile.php'?'active':'' ?>">
Profile Settings
</a>

<a href="logout.php">
Logout
</a>

</div>