<?php
session_start();

if(!isset($_SESSION['user_id'])){
    header("Location: ../admin/login.php");
    exit;
}

include "operator_header.php";
?>

<h3>Panchayat Management 🏛️</h3>
<p style="color:#666;font-size:14px;">Manage Sarpanch and Panchayat members</p>

<!-- BUTTON GRID -->

<div style="display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:20px;">

<a href="../admin/villages/add_sarpanch.php" class="menu-box">
<i class="fa fa-user-tie"></i><br>Add Sarpanch
</a>

<a href="../admin/villages/sarpanches_list.php" class="menu-box">
<i class="fa fa-list"></i><br>Sarpanches List
</a>

<a href="../admin/villages/add_member.php" class="menu-box">
<i class="fa fa-user-plus"></i><br>Add Panchayat Member
</a>

<a href="../admin/villages/members_list.php" class="menu-box">
<i class="fa fa-users"></i><br>Members List
</a>

</div>

<style>
.menu-box{
background:#fff;
padding:18px;
border-radius:10px;
text-align:center;
text-decoration:none;
color:#333;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
}
.menu-box i{
font-size:20px;
margin-bottom:5px;
display:block;
color:#2c3e50;
}
</style>

<!-- FOOTER -->
<?php include "footer.php"; ?>

</div>
</body>
</html>