Checking for overlapping appointments and limit attendees
I am trying an appointment' each slot is 15 or 30 minutes and that's each slot will limit number of attendees. But on the frontend I'd want display number of attends of all slots.
Example:
Capacity: 20 people
Min Slot Minutes: 15 minutes
Slot 1: 8:00-8:15 - number of attendees is 15 people (By User 1)
Slot 2: 8:00-8:15 - number of attendees is 3 people (By User 2)
Slot 3: 8:00 - 8:30 - number of attendees this time max 2 people. (By User 3)
The total number of attendees is what I want to show Appointment 1 hour from 8:00- 9:00.
@Saturnlai, there was another thread here on time slots that could be helpful... I can't seem to find it at the moment. But why not query the events instead of the attendees and do a withCount for the attendees?