generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
fullcalendar.blade.php
31 lines (28 loc) · 1.6 KB
/
fullcalendar.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@php
$plugin = \Saade\FilamentFullCalendar\FilamentFullCalendarPlugin::get();
@endphp
<x-filament-widgets::widget>
<x-filament::section>
<div class="flex justify-end flex-1 mb-4">
<x-filament-actions::actions :actions="$this->getCachedHeaderActions()" class="shrink-0" />
</div>
<div class="filament-fullcalendar" wire:ignore ax-load
ax-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('filament-fullcalendar-alpine', 'saade/filament-fullcalendar') }}"
ax-load-css="{{ \Filament\Support\Facades\FilamentAsset::getStyleHref('filament-fullcalendar-styles', 'saade/filament-fullcalendar') }}"
x-ignore x-data="fullcalendar({
locale: @js($plugin->getLocale()),
plugins: @js($plugin->getPlugins()),
schedulerLicenseKey: @js($plugin->getSchedulerLicenseKey()),
timeZone: @js($plugin->getTimezone()),
config: @js($this->getConfig()),
editable: @json($plugin->isEditable()),
selectable: @json($plugin->isSelectable()),
eventClassNames: {!! htmlspecialchars($this->eventClassNames(), ENT_COMPAT) !!},
eventContent: {!! htmlspecialchars($this->eventContent(), ENT_COMPAT) !!},
eventDidMount: {!! htmlspecialchars($this->eventDidMount(), ENT_COMPAT) !!},
eventWillUnmount: {!! htmlspecialchars($this->eventWillUnmount(), ENT_COMPAT) !!},
})">
</div>
</x-filament::section>
<x-filament-actions::modals />
</x-filament-widgets::widget>