document.addEventListener("DOMContentLoaded", function() {
fetch("/available-slots") // Fetch slots from your API
.then(response => response.json())
.then(data => {
let events = [];
if (data.available_slots !== "All slots are available!") {
events = data.available_slots.map(slot => ({
title: "Booked",
start: