segmentFormErrors->isNotEmpty() && Session::get('actionUrl')) x-init="action = '{{ Session::get('actionUrl') }}'" @endif x-on:open-modal.window="if ($event.detail.name == 'add-segment') { action = $event.detail.action; show = true; }">