2023-11-06 11:31:02 +00:00
|
|
|
<div>
|
|
|
|
@if ($server->id !== 0)
|
|
|
|
<h2 class="pt-4">Danger Zone</h2>
|
|
|
|
<div class="">Woah. I hope you know what are you doing.</div>
|
|
|
|
<h4 class="pt-4">Delete Server</h4>
|
|
|
|
<div class="pb-4">This will remove this server from Coolify. Beware! There is no coming
|
|
|
|
back!
|
|
|
|
</div>
|
2023-11-27 08:39:43 +00:00
|
|
|
@if ($server->definedResources()->count() > 0)
|
2024-02-26 09:25:21 +00:00
|
|
|
<div class="pb-2 text-red-500">You need to delete all resources before deleting this server.</div>
|
2024-01-31 15:14:12 +00:00
|
|
|
<x-new-modal disabled isErrorButton buttonTitle="Delete">
|
|
|
|
This server will be deleted. It is not reversible. <br>Please think again.
|
|
|
|
</x-new-modal>
|
2023-11-06 17:04:18 +00:00
|
|
|
@else
|
2024-01-31 15:14:12 +00:00
|
|
|
<x-new-modal isErrorButton buttonTitle="Delete">
|
|
|
|
This server will be deleted. It is not reversible. <br>Please think again.
|
|
|
|
</x-new-modal>
|
2023-11-06 17:04:18 +00:00
|
|
|
@endif
|
2023-11-06 11:31:02 +00:00
|
|
|
@endif
|
|
|
|
</div>
|