lasthourcloud/resources/views/components/naked-modal.blade.php
Andras Bacsai b82648ef5b modal
2023-06-05 12:13:13 +02:00

18 lines
691 B
PHP

@props([
'show' => null,
'message' => 'Are you sure you want to delete this?',
'action' => 'delete',
])
<div x-cloak x-show="{{ $show }}" x-transition class="modal modal-open">
<div class="relative text-center rounded modal-box bg-coolgray-100">
<div class="pb-8 text-base text-white">{{ $message }}</div>
<div class="flex justify-center gap-4 text-xs">
<x-forms.button class="w-32" isWarning wire:click='{{ $action }}'
x-on:click="{{ $show }} = false">
Yes
</x-forms.button>
<x-forms.button class="w-32" x-on:click="{{ $show }} = false">No</x-forms.button>
</div>
</div>
</div>