By default, the calendar package uses a standard view for events. To gain full control over the HTML markup, you can provide custom content via the eventContent method.
Crucial Performance Note: To maintain high performance, event content is rendered once on the server and then reused for every event. Because of this, you cannot access specific event data directly within Blade or PHP during the initial render.
To display dynamic data (like titles or custom properties), you must use AlpineJS to access the event data exposed by the wrapper component. All data passed to the event via extendedProps is accessible via the event.extendedProps object in AlpineJS.
<div class="flex flex-col items-start">
<span x-text="event.title"></span>
<template x-for="user in event.extendedProps.users">
<span x-text="user.name"></span>
</template>
</div>