33 lines
1.7 KiB
PHP
33 lines
1.7 KiB
PHP
<div class="rounded-lg bg-surface p-6">
|
|
@if ($hostCount > 0)
|
|
<div class="flex items-start gap-3">
|
|
<span class="grid size-10 shrink-0 place-items-center rounded-lg bg-warning-bg text-warning">
|
|
<x-ui.icon name="alert-triangle" class="size-5" />
|
|
</span>
|
|
<div class="min-w-0">
|
|
<h3 class="text-base font-semibold text-ink">{{ __('datacenters.delete_blocked_title') }}</h3>
|
|
<p class="mt-1 text-sm text-muted">{{ __('datacenters.delete_blocked_body', ['name' => $name, 'count' => $hostCount]) }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="mt-6 flex justify-end">
|
|
<x-ui.button variant="secondary" x-on:click="Livewire.dispatch('closeModal')">{{ __('datacenters.cancel') }}</x-ui.button>
|
|
</div>
|
|
@else
|
|
<div class="flex items-start gap-3">
|
|
<span class="grid size-10 shrink-0 place-items-center rounded-lg bg-danger-bg text-danger">
|
|
<x-ui.icon name="alert-triangle" class="size-5" />
|
|
</span>
|
|
<div class="min-w-0">
|
|
<h3 class="text-base font-semibold text-ink">{{ __('datacenters.delete_title') }}</h3>
|
|
<p class="mt-1 text-sm text-muted">{{ __('datacenters.delete_body', ['name' => $name]) }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="mt-6 flex justify-end gap-3">
|
|
<x-ui.button variant="secondary" x-on:click="Livewire.dispatch('closeModal')">{{ __('datacenters.cancel') }}</x-ui.button>
|
|
<x-ui.button variant="danger" wire:click="delete" wire:loading.attr="disabled">
|
|
<x-ui.icon name="trash-2" class="size-4" />{{ __('datacenters.delete_confirm') }}
|
|
</x-ui.button>
|
|
</div>
|
|
@endif
|
|
</div>
|