System Calendar
Last updated
Last updated
This module allows you to generate a calendar with events from one or more CRUDs - in this case, called Calendar Sources.
You add CRUDs as sources online - as many as you want, and then you download the calendar as part of your generated code.
Notice: Event sources can be generated only online, downloaded panel doesn't have function to add new CRUDs into calendar, you would have to add your custom code then.
To view the data in a calendar form, we use FullCalendar.io library.
We create one SystemCalendarController file which collects all the sources into one $events array.
And View file admin/calendar.blade.php looks like this:
You can easily customize each of the reports after download by adding more logic in the files above.
First, go to your panel's Modules menu item, find the module in the list and click Install.
Then you will see a new menu item Calendar Sources on the left, where you can add your CRUDs as sources.
Each Source consists of CRUD field (date / datetime) and label field (what to show inside the calendar cell) with ability to add prefix/suffix there.
After adding sources, you will see another new menu item Calendar - you can check the results there.
As soon as you're happy with your panel, download the files, and Calendar menu will be among them.
Official documentation: Fullcalendar.io library
Another article that may help you: