@forelse ($recent as $row) @php $code = $row->status_code; $isOk = $code !== null && $code >= 200 && $code < 300; $isRetry = !$isOk && $code !== null && $code >= 500; $codeBadge = $isOk ? 'bg-wa-mint text-wa-deep' : ($isRetry ? 'bg-accent-coral/15 text-[#A1431F]' : 'bg-accent-coral/15 text-[#A1431F]'); $codeText = $isOk ? "{$code} OK" : ($code ? "{$code} retry" : 'failed'); $latency = $row->latency_ms === null ? '/' : ($row->latency_ms < 1000 ? $row->latency_ms . 'ms' : number_format($row->latency_ms / 1000, 1) . 's'); $host = $row->webhook ? parse_url($row->webhook->webhook_url, PHP_URL_HOST) : '/'; @endphp