<?php
session_start();

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

include "operator_header.php";
?>

<h3>Village Buildings 🏢</h3>
<p style="color:#666;font-size:14px;">Manage village infrastructure</p>

<!-- ===== BUTTONS ===== -->

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

<!-- TEMPLE -->
<a href="../admin/villages/add_temple.php" style="background:#27ae60;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-place-of-worship"></i><br><br>Add Temple
</a>

<a href="../admin/villages/temples_list.php" style="background:#3498db;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-list"></i><br><br>Temple List
</a>

<!-- CHAUPAL -->
<a href="../admin/villages/add_chaupal.php" style="background:#e67e22;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-plus"></i><br><br>Add Chaupal
</a>

<a href="../admin/villages/chaupals_list.php" style="background:#9b59b6;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-list"></i><br><br>Chaupal List
</a>

<!-- GOVT BUILDINGS -->
<a href="../admin/villages/add_govt_building.php" style="background:#16a085;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-building"></i><br><br>Add Govt Building
</a>

<a href="../admin/villages/govt_buildings_list.php" style="background:#2c3e50;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-list"></i><br><br>Buildings List
</a>

<!-- ANGANWADI -->
<a href="../admin/villages/add_anganwadi.php" style="background:#e74c3c;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-child"></i><br><br>Add Anganwadi
</a>

<a href="../admin/villages/anganwadi_list.php" style="background:#34495e;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-list"></i><br><br>Anganwadi List
</a>

</div>

<!-- ===== BACK BUTTON ===== -->

<div style="margin-top:25px;">
<a href="operator_dashboard.php" style="text-decoration:none;color:#2c3e50;">
← Back to Dashboard
</a>
</div>

<!-- ===== BOTTOM NAV ===== -->

<?php include "footer.php"; ?>