@php $field = 'h-9 w-full rounded-md border border-line bg-inset px-3 text-sm text-ink focus:border-accent/40 focus:outline-none'; $label = 'mb-1 block font-mono text-[11px] uppercase tracking-wider text-ink-3'; $scopeName = function ($rule) use ($groupNames, $serverNames) { return match ($rule->scope_type) { 'group' => $groupNames[$rule->scope_id] ?? __('alerts.scope_group'), 'server' => $serverNames[$rule->scope_id] ?? __('alerts.scope_server'), default => __('alerts.scope_all'), }; }; @endphp {{-- Poll so firing/resolved incidents appear live, matching the dashboard, without a manual refresh. --}}
{{ __('alerts.eyebrow') }}
{{ __('alerts.subtitle') }}
{{ __('alerts.no_channel_title') }}
{{ __('alerts.no_channel_hint') }}
{{ __('alerts.no_incidents_title') }}
{{ __('alerts.no_incidents') }}
{{ $incident->rule?->name ?? '—' }}
{{ $incident->server?->name ?? '—' }} · {{ __('alerts.incident_value', ['value' => $incident->value]) }}
{{ __('alerts.no_rules_title') }}
{{ __('alerts.no_rules') }}
{{ $rule->name }}
@if ($rule->metric === 'offline') {{ __('alerts.rule_summary_offline', ['scope' => $scopeName($rule)]) }} @else {{ __('alerts.rule_summary', ['scope' => $scopeName($rule), 'metric' => __('alerts.metric_'.$rule->metric), 'comparator' => __('alerts.comparator_'.$rule->comparator), 'threshold' => $rule->threshold]) }} @endif