just an overview of what im trying to implement.
- An instructor can set his/her available time slots with different durations.
- User is also able to set A slot for whole month by using a toggle if he/she wants to replicate the slots for the whole month. e.g user sets slot for monday from 5pm to 6 pm it will automatically replicate to 3 consecutive mondays.
- User can also delete the slots one at a time.
the problem im facing is if I create a slot for Mondays 5 pm to 6 pm of the whole month. and delete the slot of the first monday and again create the slot from 5pm to 6pm it will be fine for the first monday but for other 3 consecutive monday there is already a slot set for that time. i will create overlapping time slots how can i avoid this.
here is the loom link of demonstration what i want to say.