2023-11-06 11:31:02 +00:00
|
|
|
<div>
|
|
|
|
<x-modal yesOrNo modalId="deleteServer" modalTitle="Delete Server">
|
|
|
|
<x-slot:modalBody>
|
|
|
|
<p>This server will be deleted. It is not reversible. <br>Please think again..</p>
|
|
|
|
</x-slot:modalBody>
|
|
|
|
</x-modal>
|
|
|
|
@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)
|
|
|
|
<x-forms.button disabled isError isModal modalId="deleteServer">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
2023-11-06 17:04:18 +00:00
|
|
|
@else
|
|
|
|
<x-forms.button isError isModal modalId="deleteServer">
|
|
|
|
Delete
|
|
|
|
</x-forms.button>
|
|
|
|
@endif
|
2023-11-28 09:55:24 +00:00
|
|
|
<div class="flex flex-col">
|
|
|
|
@forelse ($server->definedResources() as $resource)
|
|
|
|
@if ($loop->first)
|
2023-12-07 21:56:55 +00:00
|
|
|
<h3 class="pt-4">Resources</h3>
|
2023-11-28 09:55:24 +00:00
|
|
|
@endif
|
2023-11-30 11:21:53 +00:00
|
|
|
@if ($resource->link())
|
2023-12-07 21:56:55 +00:00
|
|
|
<a wire:navigate class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
2023-11-30 11:21:53 +00:00
|
|
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
|
|
|
<div>{{ $resource->name }}</div>
|
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
<div class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline">
|
|
|
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
|
|
|
<div>{{ $resource->name }}</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-11-28 09:55:24 +00:00
|
|
|
@empty
|
|
|
|
@endforelse
|
|
|
|
</div>
|
2023-11-27 08:42:23 +00:00
|
|
|
@else
|
2023-11-28 09:55:24 +00:00
|
|
|
<div class="flex flex-col">
|
|
|
|
@forelse ($server->definedResources() as $resource)
|
|
|
|
@if ($loop->first)
|
2023-12-07 21:56:55 +00:00
|
|
|
<h3 class="pt-4">Resources</h3>
|
2023-11-28 09:55:24 +00:00
|
|
|
@endif
|
2023-11-30 11:21:53 +00:00
|
|
|
@if ($resource->link())
|
2023-12-07 21:56:55 +00:00
|
|
|
<a wire:navigate class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline" href="{{ $resource->link() }}">
|
2023-11-30 11:21:53 +00:00
|
|
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
|
|
|
<div>{{ $resource->name }}</div>
|
|
|
|
</a>
|
|
|
|
@else
|
|
|
|
<div class="flex gap-2 p-1 hover:bg-coolgray-100 hover:no-underline">
|
|
|
|
<div class="w-64">{{ str($resource->type())->headline() }}</div>
|
|
|
|
<div>{{ $resource->name }}</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-11-28 09:55:24 +00:00
|
|
|
@empty
|
|
|
|
@endforelse
|
2023-11-28 09:54:46 +00:00
|
|
|
</div>
|
2023-11-06 11:31:02 +00:00
|
|
|
@endif
|
|
|
|
</div>
|