@php $overall = $status['overall'] ?? 'unknown'; $colors = [ 'operational' => ['bg' => '#0f5132', 'fg' => '#d1e7dd', 'label' => 'Todos los servicios operativos'], 'degraded' => ['bg' => '#664d03', 'fg' => '#fff3cd', 'label' => 'Servicio degradado'], 'stale' => ['bg' => '#41464b', 'fg' => '#e2e3e5', 'label' => 'Estado pendiente de chequeo'], 'unknown' => ['bg' => '#41464b', 'fg' => '#e2e3e5', 'label' => 'Sin información reciente'], ]; $c = $colors[$overall] ?? $colors['unknown']; @endphp Estado del servicio — BewPro

Estado del servicio

{{ $c['label'] }}

@if ($status['checked_at']) Último chequeo: {{ $status['checked_ago'] ?? '—' }} @if ($status['stale']) · (automático cada 6h) @endif @else Aún no se ejecutó un chequeo automático. @endif

{{ $status['tenants']['total'] }}
Total
{{ $status['tenants']['ok'] }}
Operativos
{{ $status['tenants']['down'] }}
Caídos
@if (!empty($status['system']))

Sistema

@foreach ($status['system'] as $iss)
{{ $iss['label'] ?? $iss }} @if (!empty($iss['severity'])) {{ $iss['severity'] }} @endif
@endforeach
@endif @if (!empty($status['down_tenants']))

Sitios afectados

@foreach ($status['down_tenants'] as $t)
{{ $t['name'] }} @if ($t['status'] > 0) HTTP {{ $t['status'] }} @elseif ($t['error']) {{ Str::limit($t['error'], 40) }} @endif
@endforeach
@endif