2023-08-29 12:36:17 +00:00
|
|
|
<div>
|
|
|
|
<div class="flex items-start gap-2">
|
|
|
|
<h1>Servers</h1>
|
2024-04-17 08:49:24 +00:00
|
|
|
<x-modal-input buttonTitle="+ Add" title="New Server" :closeOutside="false">
|
2024-03-22 16:02:09 +00:00
|
|
|
<livewire:server.create />
|
|
|
|
</x-modal-input>
|
2023-08-29 12:36:17 +00:00
|
|
|
</div>
|
2024-03-20 14:46:59 +00:00
|
|
|
<div class="subtitle">All your servers are here.</div>
|
2023-08-29 12:36:17 +00:00
|
|
|
<div class="grid gap-2 lg:grid-cols-2">
|
|
|
|
@forelse ($servers as $server)
|
2024-02-26 09:25:21 +00:00
|
|
|
<a href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}"
|
2023-08-29 12:36:17 +00:00
|
|
|
@class([
|
|
|
|
'gap-2 border cursor-pointer box group',
|
2024-03-21 13:30:35 +00:00
|
|
|
'border-transparent' =>
|
|
|
|
$server->settings->is_reachable &&
|
|
|
|
$server->settings->is_usable &&
|
|
|
|
!$server->settings->force_disabled,
|
|
|
|
'border-red-500' =>
|
|
|
|
!$server->settings->is_reachable || $server->settings->force_disabled,
|
2023-08-29 12:36:17 +00:00
|
|
|
])>
|
2024-03-25 18:07:59 +00:00
|
|
|
<div class="flex flex-col justify-center mx-6">
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="font-bold dark:text-white">
|
2023-08-29 12:36:17 +00:00
|
|
|
{{ $server->name }}
|
|
|
|
</div>
|
2023-10-20 07:29:09 +00:00
|
|
|
<div class="description">
|
2023-08-29 12:36:17 +00:00
|
|
|
{{ $server->description }}</div>
|
|
|
|
<div class="flex gap-1 text-xs text-error">
|
|
|
|
@if (!$server->settings->is_reachable)
|
|
|
|
<span>Not reachable</span>
|
|
|
|
@endif
|
|
|
|
@if (!$server->settings->is_reachable && !$server->settings->is_usable)
|
|
|
|
&
|
|
|
|
@endif
|
|
|
|
@if (!$server->settings->is_usable)
|
|
|
|
<span>Not usable by Coolify</span>
|
|
|
|
@endif
|
2024-02-26 09:25:21 +00:00
|
|
|
@if ($server->settings->force_disabled)
|
|
|
|
<span>Disabled by the system</span>
|
|
|
|
@endif
|
2023-08-29 12:36:17 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex-1"></div>
|
|
|
|
</a>
|
|
|
|
@empty
|
|
|
|
<div>
|
|
|
|
<div>No servers found. Without a server, you won't be able to do much.</div>
|
|
|
|
</div>
|
|
|
|
@endforelse
|
|
|
|
@isset($error)
|
|
|
|
<div class="text-center text-error">
|
|
|
|
<span>{{ $error }}</span>
|
|
|
|
</div>
|
|
|
|
@endisset
|
|
|
|
<script>
|
|
|
|
function goto(uuid) {
|
|
|
|
window.location.href = '/server/' + uuid;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</div>
|