{{ __('hosts.title') }}

{{ __('hosts.subtitle') }}

{{ __('hosts.add') }}
@if ($hosts->isEmpty())

{{ __('hosts.empty') }}

@else
@foreach ($hosts as $host) @php $badge = ['pending' => 'pending', 'onboarding' => 'provisioning', 'active' => 'active', 'error' => 'failed', 'disabled' => 'suspended'][$host->status] ?? 'info'; $usedPct = $host->total_gb ? (int) round(($host->total_gb - $host->freeGb()) / max($host->total_gb, 1) * 100) : 0; @endphp

{{ $host->name }}

{{ $host->public_ip }} ยท {{ __('hosts.datacenter.'.$host->datacenter) }}

{{ __('hosts.status.'.$host->status) }}
{{ __('hosts.capacity') }} @if ($host->total_gb) {{ $host->freeGb() }} / {{ $host->total_gb }} GB {{ __('hosts.free') }} @else {{ __('hosts.unknown') }} @endif
@if ($host->total_gb)
@endif
@endforeach
@endif