@extends('layouts.app') @section('title', 'Alerts') @section('content')

Alerts

{{ $alerts->total() }} alert(s) in this view.

Alert rules
@csrf
@include('components.kpi', ['label' => 'Active', 'value' => $counts['active'], 'variant' => $counts['active'] > 0 ? 'warn' : 'good', 'href' => route('alerts.index', ['status' => 'active'])]) @include('components.kpi', ['label' => 'Acknowledged', 'value' => $counts['acknowledged'], 'variant' => 'info', 'href' => route('alerts.index', ['status' => 'acknowledged'])]) @include('components.kpi', ['label' => 'Critical', 'value' => $counts['critical'], 'variant' => 'bad', 'href' => route('alerts.index', ['severity' => 'critical'])]) @include('components.kpi', ['label' => 'Warning', 'value' => $counts['warning'], 'variant' => 'warn', 'href' => route('alerts.index', ['severity' => 'warning'])]) @include('components.kpi', ['label' => 'Info', 'value' => $counts['info'], 'href' => route('alerts.index', ['severity' => 'info'])]) @include('components.kpi', ['label' => 'Resolved today', 'value' => $counts['resolved_today'], 'variant' => 'good', 'href' => '#'])
@forelse ($alerts as $alert) @empty @endforelse
AlertDevice / siteTypeSeverity CountFirst seenLast seenStatus
{{ $alert->title }}
{{ \Illuminate\Support\Str::limit($alert->description, 90) }}
@if ($alert->device) {{ $alert->device->name }} @elseif ($alert->site) {{ $alert->site->name }} @else Network-wide @endif {{ title_case_words($alert->type) }} {{ $alert->severity }} {{ $alert->occurrences }} {{ $alert->first_triggered_at?->format('d M H:i') ?? $alert->created_at->format('d M H:i') }} {{ $alert->last_triggered_at?->format('d M H:i') ?? '—' }} {{ $alert->status }} @if ($alert->status === 'active')
@csrf
@endif @if ($alert->status !== 'resolved')
@csrf
@endif @if (! $alert->ticket_id)
@csrf
@else ticketed @endif
@include('components.empty-state', ['icon' => '✓', 'title' => 'No alerts in this view', 'message' => 'Run a monitoring sweep to refresh the estate state.'])
@if ($alerts->hasPages())
{{ $alerts->links('partials.pagination') }}
@endif
@endsection