This commit is contained in:
Saeed Vaziry
2024-08-20 21:26:27 +02:00
committed by GitHub
parent 431da1b728
commit 7f5e68e131
47 changed files with 1380 additions and 99 deletions

View File

@ -12,30 +12,63 @@
<x-live id="live-sites">
@if (count($sites) > 0)
<div class="space-y-3">
@foreach ($sites as $site)
<a href="{{ route("servers.sites.show", ["server" => $server, "site" => $site]) }}" class="block">
<x-item-card>
<div class="flex-none">
<img
src="{{ asset("static/images/" . $site->type . ".svg") }}"
class="h-10 w-10"
alt=""
/>
</div>
<div class="ml-3 flex flex-grow flex-col items-start justify-center">
<span class="mb-1">{{ $site->domain }}</span>
<span class="text-sm text-gray-400">
<x-table>
<x-thead>
<x-tr>
<x-th>Domain</x-th>
<x-th>Date</x-th>
<x-th>Tags</x-th>
<x-th>Status</x-th>
<x-th></x-th>
</x-tr>
</x-thead>
<x-tbody>
@foreach ($sites as $site)
<x-tr>
<x-td>
<div class="flex items-center">
<img
src="{{ asset("static/images/" . $site->type . ".svg") }}"
class="mr-1 h-5 w-5"
alt=""
/>
<a
href="{{ route("servers.sites.show", ["server" => $server, "site" => $site]) }}"
class="hover:underline"
>
{{ $site->domain }}
</a>
</div>
</x-td>
<x-td>
<x-datetime :value="$site->created_at" />
</span>
</div>
<div class="flex items-center">
<div class="inline">
</x-td>
<x-td>
@include("settings.tags.tags", ["taggable" => $site, "oobOff" => true])
</x-td>
<x-td>
@include("sites.partials.status", ["status" => $site->status])
</div>
</div>
</x-item-card>
</a>
@endforeach
</x-td>
<x-td>
<div class="flex items-center justify-end">
<x-icon-button
:href="route('servers.sites.show', ['server' => $server, 'site' => $site])"
data-tooltip="Show Site"
>
<x-heroicon name="o-eye" class="h-5 w-5" />
</x-icon-button>
<x-icon-button
:href="route('servers.sites.settings', ['server' => $server, 'site' => $site])"
data-tooltip="Settings"
>
<x-heroicon name="o-wrench-screwdriver" class="h-5 w-5" />
</x-icon-button>
</div>
</x-td>
</x-tr>
@endforeach
</x-tbody>
</x-table>
</div>
@else
<x-simple-card>