<?php
require 'holiday_calendar_script.php';
?>

<!DOCTYPE html>
<html>
<head>

<title>Holiday Calendar</title>

<script src="https://cdn.tailwindcss.com"></script>

</head>

<body class="flex h-screen bg-gray-100">

<?php include '../sidebar.php'; ?>

<div class="flex-1 p-8" id="main-content">

<h1 class="text-3xl font-bold mb-6">

📅 Holiday Calendar

</h1>

<div class="bg-white rounded-xl shadow p-6">

<div class="grid md:grid-cols-4 gap-4">

<?php foreach($holidays as $date=>$name): ?>

<div class="border rounded-xl p-4 bg-red-50">

<div class="font-bold text-red-700">

<?= htmlspecialchars($name) ?>

</div>

<div class="text-sm text-gray-500">

<?= date(
'd M Y',
strtotime($date)
) ?>

</div>

</div>

<?php endforeach; ?>

</div>

</div>

</div>

</body>
</html>