@php $field = 'h-9 w-full rounded-md border border-line bg-inset px-3 text-sm text-ink placeholder:text-ink-4 focus:border-accent/40 focus:outline-none'; $label = 'mb-1 block font-mono text-[11px] uppercase tracking-wider text-ink-3'; $statusPill = ['ok' => 'online', 'warning' => 'warning', 'critical' => 'offline', 'expired' => 'offline', 'error' => 'offline', 'unknown' => 'pending']; @endphp
{{-- Header --}}

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

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

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

{{-- Add endpoint --}}
@error('host')

{{ $message }}

@enderror
@error('port')

{{ $message }}

@enderror
{{ __('certs.add') }}
{{-- Endpoints --}} @if ($endpoints->isEmpty())

{{ __('certs.no_endpoints_title') }}

{{ __('certs.no_endpoints') }}

@else
@foreach ($endpoints as $ep) @php($c = $checks[$ep->uuid] ?? null)

{{ $ep->label ?: $ep->host }}

{{ $ep->host }}:{{ $ep->port }} @if ($c && ($c['ok'] ?? false) && ! is_null($c['daysLeft'] ?? null)) · @if ($c['daysLeft'] < 0) {{ __('certs.expired_since', ['days' => abs($c['daysLeft'])]) }} @elseif ($c['daysLeft'] === 0) {{ __('certs.expires_today') }} @else {{ __('certs.expires_in', ['days' => $c['daysLeft']]) }} @endif @elseif ($c && ! ($c['ok'] ?? false)) · {{ __('certs.check_error') }} @endif

@if ($c) {{ __('certs.status_'.$c['status']) }} @endif {{ __('certs.delete') }}
@endforeach
@endif