coolify/resources/views/components/naked-modal.blade.php

19 lines
791 B
PHP
Raw Normal View History

2023-05-04 22:29:14 +02:00
@props([
'show' => null,
'message' => 'Are you sure you want to delete this?',
'action' => 'delete',
])
2023-05-18 13:26:35 +02:00
<div x-cloak x-show="{{ $show }}" x-transition class="modal modal-open">
2023-06-02 12:34:45 +02:00
<div class="relative text-center rounded modal-box bg-coolgray-100">
2023-06-05 12:13:13 +02:00
<div class="pb-8 text-base text-white">{{ $message }}</div>
2023-06-02 12:34:45 +02:00
<div class="flex justify-center gap-4 text-xs">
2023-06-05 13:50:34 +02:00
<x-forms.button class="w-32 hover:bg-coolgray-400 bg-coolgray-200 h-7" isWarning
wire:click='{{ $action }}' x-on:click="{{ $show }} = false">
2023-05-18 13:26:35 +02:00
Yes
2023-05-25 14:05:44 +02:00
</x-forms.button>
2023-06-05 13:50:34 +02:00
<x-forms.button class="w-32 hover:bg-coolgray-400 bg-coolgray-200 h-7"
x-on:click="{{ $show }} = false">No</x-forms.button>
2023-05-04 22:29:14 +02:00
</div>
</div>
</div>