2023-08-07 20:14:21 +00:00
|
|
|
<div>
|
2023-09-22 12:47:25 +00:00
|
|
|
<h2>Server</h2>
|
2024-01-16 14:19:14 +00:00
|
|
|
<div class="">Server related configurations.</div>
|
2024-02-06 14:05:11 +00:00
|
|
|
<div class="grid grid-cols-2 gap-4 py-4">
|
|
|
|
{{-- <a class="box"
|
2023-11-21 14:31:46 +00:00
|
|
|
href="{{ route('server.show', ['server_uuid' => data_get($resource, 'destination.server.uuid')]) }}">On
|
|
|
|
server <span class="px-1 text-warning">{{ data_get($resource, 'destination.server.name') }}</span>
|
2024-02-06 14:05:11 +00:00
|
|
|
in <span class="px-1 text-warning"> {{ data_get($resource, 'destination.network') }} </span> network</a>
|
|
|
|
@if (count($additional_destinations) > 0)
|
|
|
|
@foreach ($additional_destinations as $destination)
|
|
|
|
<a class="box"
|
|
|
|
href="{{ route('server.show', ['server_uuid' => data_get($destination, 'server.uuid')]) }}">On server
|
|
|
|
<span class="px-1 text-warning">{{ data_get($destination, 'server.name') }}</span> in <span
|
|
|
|
class="px-1 text-warning"> {{ data_get($destination, 'network') }} </span> network</a>
|
|
|
|
@endforeach
|
|
|
|
@endif --}}
|
|
|
|
<div class="box"
|
|
|
|
wire:click="removeServer('{{ data_get($resource, 'destination.id') }}','{{ data_get($resource, 'destination.server.id') }}')">
|
|
|
|
On
|
|
|
|
server <span class="px-1 text-warning">{{ data_get($resource, 'destination.server.name') }}</span>
|
|
|
|
in <span class="px-1 text-warning"> {{ data_get($resource, 'destination.network') }} </span> network</div>
|
|
|
|
@if (count($resource->additional_networks) > 0)
|
|
|
|
@foreach ($resource->additional_networks as $destination)
|
|
|
|
<div class="box"
|
|
|
|
wire:click="removeServer('{{ data_get($destination, 'id') }}','{{ data_get($destination, 'server.id') }}')">
|
|
|
|
On
|
|
|
|
server
|
|
|
|
<span class="px-1 text-warning">{{ data_get($destination, 'server.name') }}</span> in <span
|
|
|
|
class="px-1 text-warning"> {{ data_get($destination, 'network') }} </span> network
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2023-08-07 20:14:21 +00:00
|
|
|
</div>
|
2024-02-06 14:05:11 +00:00
|
|
|
<h4>Attach to a Server</h4>
|
|
|
|
@if (count($networks) > 0)
|
|
|
|
<div class="grid grid-cols-2 gap-4">
|
|
|
|
@foreach ($networks as $network)
|
|
|
|
<div wire:click="addServer('{{ $network->id }}','{{ data_get($network, 'server.id') }}')"
|
|
|
|
class="box">
|
|
|
|
{{ data_get($network, 'server.name') }}
|
|
|
|
{{ $network->name }}
|
|
|
|
</div>
|
2023-11-21 14:31:46 +00:00
|
|
|
@endforeach
|
|
|
|
</div>
|
2024-02-06 14:05:11 +00:00
|
|
|
@else
|
|
|
|
<div class="text-neutral-500">No additional servers available to attach.</div>
|
|
|
|
@endif
|
2023-08-07 20:14:21 +00:00
|
|
|
</div>
|