this is my first time working with the full calendar and laravel combined and I have an issue pulling data from the database and proceeding it to the full calendar.
I have a show page for each service and I need to calculate working hours based on the returned data from the database (work_to - work_from).
This is how I got the access to the model in the script:
const service = window.service;
When I log some data it looks like this:
SCRIPT
const service = window.service;
for(let i = 0; i < service.services_work_time.length; i++) {
console.log(service.services_work_time[i].work_to)
}
Display of the services data
Display of the services.services_time_to_work relation
