<?php
session_start();

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

include "operator_header.php";
?>

<h3>Media Management 🖼</h3>
<p style="color:#666;font-size:14px;">Manage gallery, slider and videos</p>

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

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

<!-- SLIDER -->
<a href="../admin/villages/add_slider.php" style="background:#27ae60;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-image"></i><br><br>Add Slider
</a>

<a href="../admin/villages/sliders_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>Slider List
</a>

<!-- GALLERY -->
<a href="../admin/villages/create_gallery_category.php" style="background:#e67e22;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-folder"></i><br><br>Gallery Categories
</a>

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

<a href="../admin/villages/gallery_images_list.php" style="background:#16a085;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-images"></i><br><br>Image List
</a>

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

<a href="../admin/villages/video_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>Video 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"; ?>