2023-06-15 13:38:15 +00:00
|
|
|
<div>
|
|
|
|
<div class="flex items-end gap-2">
|
2023-06-22 07:38:44 +00:00
|
|
|
<h2>Destinations</h2>
|
2023-06-15 13:38:15 +00:00
|
|
|
<a href="{{ route('destination.new', ['server_id' => $server->id]) }}">
|
|
|
|
<x-forms.button>Add a new destination</x-forms.button>
|
|
|
|
</a>
|
|
|
|
<x-forms.button wire:click='scan'>Scan destinations on the server</x-forms.button>
|
|
|
|
</div>
|
2023-06-16 10:35:40 +00:00
|
|
|
<div class="pt-2 pb-6 ">Destinations are used to segregate resources by network.</div>
|
|
|
|
<div class="flex gap-2 ">
|
2023-06-15 13:39:30 +00:00
|
|
|
Available for using:
|
2023-06-15 13:38:15 +00:00
|
|
|
@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
|
2023-06-16 10:35:40 +00:00
|
|
|
<div class="">N\A</div>
|
2023-06-15 13:38:15 +00:00
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
<div class="grid gap-2 pt-2">
|
|
|
|
@if (count($networks) > 0)
|
2023-06-22 07:38:44 +00:00
|
|
|
<h4>Found Destinations</h4>
|
2023-06-15 13:38:15 +00:00
|
|
|
@endif
|
|
|
|
@foreach ($networks as $network)
|
2023-06-22 07:38:44 +00:00
|
|
|
<div class="flex gap-2 w-96">
|
2023-06-15 13:38:15 +00:00
|
|
|
<div class="w-32">{{ data_get($network, 'Name') }}</div>
|
|
|
|
<a
|
|
|
|
href="{{ route('destination.new', ['server_id' => $server->id, 'network_name' => data_get($network, 'Name')]) }}">
|
2023-06-22 07:38:44 +00:00
|
|
|
<x-forms.button>Configure</x-forms.button>
|
2023-06-15 13:38:15 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|