@php $isModal = $isModal ?? false; $formAction = $event->exists ? route('calendar.event.update', [$calendar, $event]) : route('calendar.event.store', $calendar); @endphp