2023-05-04 20:29:14 +00:00
|
|
|
@props([
|
|
|
|
'show' => null,
|
|
|
|
'message' => 'Are you sure you want to delete this?',
|
|
|
|
'action' => 'delete',
|
|
|
|
])
|
2023-05-18 11:26:35 +00:00
|
|
|
<div x-cloak x-show="{{ $show }}" x-transition class="modal modal-open">
|
|
|
|
<div class="relative modal-box">
|
2023-05-19 12:15:03 +00:00
|
|
|
<div class="pb-8 text-base font-bold text-white">{{ $message }}</div>
|
2023-05-18 11:26:35 +00:00
|
|
|
<div class="flex justify-end gap-4 text-xs">
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button wire:click='{{ $action }}' x-on:click="{{ $show }} = false">
|
2023-05-18 11:26:35 +00:00
|
|
|
Yes
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
|
|
|
<x-forms.button x-on:click="{{ $show }} = false">No</x-forms.button>
|
2023-05-04 20:29:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|