@props([
'title' => 'Are you sure?',
'buttonTitle' => 'Open Modal',
'isErrorButton' => false,
'disabled' => false,
'action' => 'delete',
'content' => null,
])
@if ($content)
{{ $content }}
@else
@if ($disabled)
{{ $buttonTitle }}
@elseif ($isErrorButton)
{{ $buttonTitle }}
@else
{{ $buttonTitle }}
@endif
@endif
{{ $slot }}
Cancel
@if ($attributes->whereStartsWith('wire:click')->first())
@if ($isErrorButton)
Continue
@else
Continue
@endif
@elseif ($attributes->whereStartsWith('@click')->first())
@if ($isErrorButton)
get('@click') }}">Continue
@else
get('@click') }}">Continue
@endif
@elseif ($action)
@if ($isErrorButton)
Continue
@else
Continue
@endif
@endif