<?php
session_start();

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

include "operator_header.php";
?>

<h3>Donations ❤️</h3>
<p style="color:#666;font-size:14px;">Manage donation works and donors</p>

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

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

<!-- DONATION WORK -->
<a href="../admin/donations/add_work.php" style="background:#27ae60;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-plus"></i><br><br>Add Donation Work
</a>

<a href="../admin/donations/works_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>Work List
</a>

<!-- DONORS -->
<a href="../admin/donations/add_donor.php" style="background:#e74c3c;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-user-plus"></i><br><br>Add Donor
</a>

<a href="../admin/donations/donors_list.php" style="background:#9b59b6;color:white;padding:20px;border-radius:10px;text-align:center;text-decoration:none;">
<i class="fa fa-users"></i><br><br>Donor 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"; ?>