status, ['pending', 'running', 'waiting'])) wire:poll.4s @endif> @php $badge = ['pending' => 'pending', 'onboarding' => 'provisioning', 'active' => 'active', 'error' => 'failed', 'disabled' => 'suspended'][$host->status] ?? 'info'; @endphp
{{ __('hosts.back') }}

{{ $host->name }}

{{ __('hosts.status.'.$host->status) }}

{{ $host->public_ip }} · {{ $host->datacenter }}

@if ($run && $run->status === 'failed') {{ __('hosts.retry') }} @endif {{ __('hosts.remove') }}
@if ($host->status === 'active')
@foreach ([ ['meta.cores', $host->cpu_cores], ['meta.ram', $host->total_ram_mb ? round($host->total_ram_mb / 1024).' GB' : __('hosts.unknown')], ['meta.wg_ip', $host->wg_ip ?? __('hosts.unknown')], ['meta.version', $host->pve_version ?? __('hosts.unknown')], ] as [$key, $value])

{{ __('hosts.'.$key) }}

{{ $value }}

@endforeach
@endif @if ($run && $run->status === 'failed')

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

{{ $run->error }}

@endif

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

@if ($run) @else

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

@endif

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

@if ($events->isEmpty())

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

@else
    @foreach ($events as $event) @php $tone = ['advanced' => 'text-success', 'retry' => 'text-warning', 'failed' => 'text-danger', 'info' => 'text-muted'][$event->outcome] ?? 'text-muted'; @endphp
  1. {{ __('hosts.step.'.$event->step) }}

    {{ __('hosts.outcome.'.$event->outcome) }} · {{ __('hosts.attempt') }} {{ $event->attempt }} @if ($event->message) · {{ $event->message }} @endif

  2. @endforeach
@endif