@extends('layouts.admin') @section('title', 'Alertes') @section('header', 'Alertes') @section('content')
Ouvertes
{{ $stats['open'] }}
Prises en charge
{{ $stats['acknowledged'] }}
Auto-corrigees
{{ $stats['auto_resolved'] }}
Resolues
{{ $stats['resolved'] }}
@forelse($alerts as $alert) @empty @endforelse
ID Severite Type Titre Occurrences Statut Derniere occ. Actions
@if(in_array($alert->status, ['open', 'acknowledged'])) @endif {{ $alert->id }} {{ $alert->severity }} {{ $alert->type }} {{ Str::limit($alert->title, 60) }} {{ $alert->occurrence_count }} {{ match($alert->status) { 'open' => 'Ouverte', 'acknowledged' => 'Prise en charge', 'auto_resolved' => 'Auto-corrigee', 'resolved' => 'Resolue', default => $alert->status, } }} {{ $alert->last_occurrence_at?->format('d/m/Y H:i') ?? '-' }}
@if($alert->status === 'open')
@csrf
@endif @if(in_array($alert->status, ['open', 'acknowledged']))
@csrf
@endif @if($alert->auto_correctable && $alert->status === 'open')
@csrf
@endif
Aucune alerte trouvee
@if($alerts->hasPages())
{{ $alerts->links() }}
@endif
@endsection