44 lines
2.5 KiB
PHP
44 lines
2.5 KiB
PHP
<div class="space-y-5">
|
|
<div class="animate-rise">
|
|
<h1 class="text-2xl font-semibold tracking-tight text-ink">{{ __('admin.nav.instances') }}</h1>
|
|
<p class="mt-1 text-sm text-muted">{{ __('admin.instances_sub') }}</p>
|
|
</div>
|
|
|
|
<div class="overflow-hidden rounded-xl border border-line bg-surface shadow-xs animate-rise [animation-delay:60ms]">
|
|
<div class="overflow-x-auto">
|
|
<table class="w-full text-sm">
|
|
<thead>
|
|
<tr class="border-b border-line bg-surface-2 text-left text-xs uppercase tracking-wide text-faint">
|
|
<th class="px-4 py-3 font-semibold">{{ __('admin.col.address') }}</th>
|
|
<th class="px-4 py-3 font-semibold">{{ __('admin.col.customer') }}</th>
|
|
<th class="px-4 py-3 font-semibold">{{ __('admin.col.host') }}</th>
|
|
<th class="px-4 py-3 font-semibold">VMID</th>
|
|
<th class="px-4 py-3 font-semibold">{{ __('admin.col.plan') }}</th>
|
|
<th class="px-4 py-3 font-semibold">{{ __('admin.col.quota') }}</th>
|
|
<th class="px-4 py-3 font-semibold">{{ __('admin.col.status') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($rows as $r)
|
|
<tr class="border-b border-line last:border-0 hover:bg-surface-hover">
|
|
<td class="px-4 py-3 font-mono text-body">{{ $r['address'] }}</td>
|
|
<td class="px-4 py-3 text-body">{{ $r['customer'] }}</td>
|
|
<td class="px-4 py-3 font-mono text-xs text-muted">{{ $r['host'] }}</td>
|
|
<td class="px-4 py-3 font-mono text-xs text-muted">{{ $r['vmid'] }}</td>
|
|
<td class="px-4 py-3 text-xs text-muted">{{ $r['plan'] }}</td>
|
|
<td class="px-4 py-3 font-mono text-xs text-muted">{{ $r['quota'] }}</td>
|
|
<td class="px-4 py-3"><x-ui.badge :status="$r['status']">{{ $r['status_label'] }}</x-ui.badge></td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="7" class="px-4 py-8 text-center text-sm text-faint">{{ __('admin.instances_empty') }}</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
@if ($instances->hasPages())
|
|
<div class="animate-rise [animation-delay:120ms]">{{ $instances->links() }}</div>
|
|
@endif
|
|
</div>
|