lasthourcloud/resources/views/server/show.blade.php

35 lines
1.2 KiB
PHP
Raw Normal View History

2023-04-25 08:47:13 +00:00
<x-layout>
2023-05-02 10:47:52 +00:00
<livewire:server.form :server_id="$server->id" />
2023-05-14 12:43:49 +00:00
<div class="flex items-center gap-2">
<h2>Private Key</h2>
<a href="{{ route('server.private-key', ['server_uuid' => $server->uuid]) }}">
<x-inputs.button isBold>Change</x-inputs.button>
2023-05-03 12:09:10 +00:00
</a>
2023-05-14 12:43:49 +00:00
</div>
2023-05-03 10:38:57 +00:00
<p>{{ $server->privateKey->name }}</p>
2023-05-14 12:43:49 +00:00
<div class="flex items-center gap-2">
<h2>Destinations</h2>
<a href="{{ route('destination.new', ['server_id' => $server->id]) }}">
<x-inputs.button isBold>New</x-inputs.button>
</a>
</div>
@if ($server->standaloneDockers->count() > 0)
2023-05-02 10:47:52 +00:00
@foreach ($server->standaloneDockers as $docker)
<p>Network: {{ data_get($docker, 'network') }}</p>
@endforeach
2023-05-14 12:43:49 +00:00
@else
<p>No destinations found</p>
2023-05-02 10:47:52 +00:00
@endif
2023-05-15 12:21:30 +00:00
<div class="flex items-center gap-2">
<h2>Proxy</h2>
@if ($server->settings->is_validated)
<div>{{ $server->extra_attributes->proxy_status }}</div>
@endif
</div>
@if ($server->settings->is_validated)
<livewire:server.proxy :server="$server" />
@else
<p>Server is not validated. Validate first.</p>
@endif
2023-04-25 08:47:13 +00:00
</x-layout>