lasthourcloud/resources/views/components/server/navbar.blade.php

64 lines
2.6 KiB
PHP
Raw Normal View History

2023-06-02 10:34:45 +00:00
<div class="pb-6">
2023-09-18 09:49:26 +00:00
<livewire:server.proxy.modal :server="$server" />
2023-07-28 19:36:19 +00:00
<div class="flex items-center gap-2">
<h1>Server</h1>
@if (
$server->proxyType() !== 'NONE' &&
$server->isFunctional() &&
!$server->isSwarmWorker() &&
!$server->settings->is_build_server)
<livewire:server.proxy.status :server="$server" />
@endif
2023-07-28 19:36:19 +00:00
</div>
2024-03-20 11:54:06 +00:00
<div class="subtitle ">{{ data_get($server, 'name') }}.</div>
<nav class="navbar-main">
<a class="{{ request()->routeIs('server.show') ? 'text-white' : '' }}"
2023-08-11 18:19:42 +00:00
href="{{ route('server.show', [
2023-10-09 09:00:18 +00:00
'server_uuid' => data_get($parameters, 'server_uuid'),
2023-06-02 10:34:45 +00:00
]) }}">
<button>General</button>
</a>
<a class="{{ request()->routeIs('server.private-key') ? 'text-white' : '' }}"
2023-08-11 18:19:42 +00:00
href="{{ route('server.private-key', [
2023-10-09 09:00:18 +00:00
'server_uuid' => data_get($parameters, 'server_uuid'),
2023-06-15 12:18:49 +00:00
]) }}">
<button>Private Key</button>
</a>
2024-03-20 11:54:06 +00:00
<a class="{{ request()->routeIs('server.resources') ? 'text-white' : '' }}"
href="{{ route('server.resources', [
'server_uuid' => data_get($parameters, 'server_uuid'),
]) }}">
<button>Resources</button>
</a>
@if (!$server->isSwarmWorker() && !$server->settings->is_build_server)
<a class="{{ request()->routeIs('server.proxy') ? 'text-white' : '' }}"
2023-12-18 13:01:25 +00:00
href="{{ route('server.proxy', [
'server_uuid' => data_get($parameters, 'server_uuid'),
]) }}">
<button>Proxy</button>
</a>
<a class="{{ request()->routeIs('server.destinations') ? 'text-white' : '' }}"
2023-12-18 13:01:25 +00:00
href="{{ route('server.destinations', [
'server_uuid' => data_get($parameters, 'server_uuid'),
]) }}">
<button>Destinations</button>
</a>
<a class="{{ request()->routeIs('server.log-drains') ? 'text-white' : '' }}"
2023-12-18 13:01:25 +00:00
href="{{ route('server.log-drains', [
'server_uuid' => data_get($parameters, 'server_uuid'),
]) }}">
<button>Log Drains</button>
</a>
@endif
2023-07-28 19:36:19 +00:00
<div class="flex-1"></div>
2024-03-20 11:54:06 +00:00
@if (
$server->proxyType() !== 'NONE' &&
$server->isFunctional() &&
!$server->isSwarmWorker() &&
!$server->settings->is_build_server)
2023-12-18 13:01:25 +00:00
<livewire:server.proxy.deploy :server="$server" />
@endif
2023-06-02 10:34:45 +00:00
</nav>
</div>