This commit is contained in:
Andras Bacsai
2023-06-15 15:38:15 +02:00
parent c9c56c915c
commit f828cd813b
7 changed files with 82 additions and 36 deletions

View File

@@ -1,20 +1,4 @@
<x-layout>
<x-server.navbar :server="$server" />
<div class="flex items-end gap-2">
<h1>Destinations</h1>
<a href="{{ route('destination.new', ['server_id' => $server->id]) }}">
<x-forms.button>Add a new destination</x-forms.button>
</a>
</div>
<div class="pt-2 pb-6 text-sm">Destinations are used to segregate resources by network.</div>
<div class="flex gap-2 text-sm">
Docker Networks available on the server:
@forelse ($server->standaloneDockers as $docker)
<a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}">
<button class="text-white btn-link">{{ data_get($docker, 'network') }} </button>
</a>
@empty
<div class="text-sm">No destinations added</div>
@endforelse
</div>
<livewire:destination.show :server="$server" />
</x-layout>