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

45 lines
1.8 KiB
PHP
Raw Normal View History

2023-05-22 13:47:40 +00:00
<x-layout>
<h1>Servers</span></h1>
2023-06-16 10:35:40 +00:00
<div class="pt-2 pb-10 ">All Servers</div>
2023-06-14 10:48:29 +00:00
<div class="grid gap-2 lg:grid-cols-2">
2023-06-02 13:15:12 +00:00
@forelse ($servers as $server)
2023-06-22 08:04:39 +00:00
<div x-data x-on:click="goto('{{ $server->uuid }}')" @class([
'gap-2 border cursor-pointer box group',
'border-transparent' => $server->settings->is_reachable,
'border-red-500' => !$server->settings->is_reachable,
])>
<div class="flex flex-col mx-6">
<div class=" group-hover:text-white">
{{ $server->name }}
</div>
<div class="text-xs group-hover:text-white"
href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}">
{{ $server->description }}</div>
2023-07-14 11:38:24 +00:00
<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
</div>
2023-06-07 08:33:45 +00:00
</div>
2023-06-22 08:04:39 +00:00
<div class="flex-1"></div>
</div>
2023-06-02 13:15:12 +00:00
@empty
2023-06-07 15:24:37 +00:00
<div>
<div>No servers found. Without a server, you won't be able to do much.</div>
<x-use-magic-bar link="/server/new" />
2023-06-02 13:15:12 +00:00
</div>
@endforelse
2023-06-22 08:04:39 +00:00
<script>
function goto(uuid) {
window.location.href = '/server/' + uuid;
}
</script>
2023-06-02 13:15:12 +00:00
</div>
2023-05-22 13:47:40 +00:00
</x-layout>