2023-07-13 11:16:24 +00:00
|
|
|
<button @disabled($disabled) {{ $attributes->merge(['class' => $defaultClass]) }}
|
2023-08-11 18:19:42 +00:00
|
|
|
{{ $attributes->merge(['type' => 'button']) }}
|
|
|
|
@isset($confirm)
|
2023-08-08 09:51:36 +00:00
|
|
|
x-on:click="toggleConfirmModal('{{ $confirm }}', '{{ explode('(', $confirmAction)[0] }}')"
|
|
|
|
@endisset
|
2023-08-11 18:19:42 +00:00
|
|
|
@isset($confirmAction)
|
2023-08-08 09:51:36 +00:00
|
|
|
x-on:{{ explode('(', $confirmAction)[0] }}.window="$wire.{{ explode('(', $confirmAction)[0] }}"
|
|
|
|
@endisset
|
2024-03-22 10:34:15 +00:00
|
|
|
>
|
2023-05-22 08:34:00 +00:00
|
|
|
|
2023-07-14 10:14:32 +00:00
|
|
|
{{ $slot }}
|
2024-03-22 13:47:36 +00:00
|
|
|
@if ($attributes->whereStartsWith('wire:click')->first())
|
2024-03-25 18:07:59 +00:00
|
|
|
<x-loading-on-button wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}" wire:loading.delay />
|
2023-07-13 11:16:24 +00:00
|
|
|
@endif
|
|
|
|
</button>
|