From 8d0c3abf2e6b4b2d0a8b5b3273d3bd3a29d1c509 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 27 Nov 2023 09:42:23 +0100 Subject: [PATCH] Refactor server delete view to display defined resources --- resources/views/livewire/server/delete.blade.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/resources/views/livewire/server/delete.blade.php b/resources/views/livewire/server/delete.blade.php index bc33f0233..b568306ad 100644 --- a/resources/views/livewire/server/delete.blade.php +++ b/resources/views/livewire/server/delete.blade.php @@ -22,7 +22,19 @@ @endif @forelse ($server->definedResources() as $resource) @if ($loop->first) -
Please delete all resources before deleting this server.
+

Defined resources

+
Please delete all resources before deleting this server.
+ @endif +
+
{{ str($resource->type())->headline() }}
+ {{ $resource->name }} +
+ @empty + @endforelse + @else + @forelse ($server->definedResources() as $resource) + @if ($loop->first) +

Defined resources

@endif
{{ str($resource->type())->headline() }}