{{-- Header --}}

{{ __('patch.eyebrow') }}

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

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

{{-- Fleet KPIs --}} @if ($ready)
@endif @if ($servers->isEmpty())

{{ __('patch.no_servers_title') }}

{{ __('patch.no_servers') }}

@elseif (! $ready)
@foreach ($servers as $s)
@endforeach

{{ __('patch.scan_hint') }}

@else
@foreach ($servers as $s) @php($c = $counts[$s->uuid] ?? null) @php($result = $results[$s->uuid] ?? null)
@if (! $c || isset($c['error'])) {{ __('patch.scan_error') }} @elseif (is_null($c['pending'])) {{ __('patch.unknown') }} @elseif ($c['pending'] === 0) {{ __('patch.up_to_date') }} @else
{{ __('patch.pending_label', ['count' => $c['pending']]) }} @if (($c['security'] ?? 0) > 0) {{ __('patch.security_label', ['count' => $c['security']]) }} @endif @can('operate') {{ __('patch.apply') }} @endcan
@endif
@if ($result)
{{ $result['output'] }}
@endif
@endforeach
@endif