except('wire:model')->class(["modal"]) }} @if($id) id="{{ $id }}" @else x-data="{open: @entangle($attributes->wire('model')).live }" x-init="$watch('open', value => { if (!value){ $dispatch('close') }else{ $dispatch('open') } })" :class="{'modal-open !animate-none': open}" :open="open" @if(!$persistent) @keydown.escape.window = "$wire.{{ $attributes->wire('model')->value() }} = false" @endif @endif @if(!$withoutTrapFocus) x-trap="open" x-bind:inert="!open" @endif > @if(!$persistent) @endif