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

Alerts

Notification history for all your sites

@if($notifications->isEmpty())
No alerts yet. You'll receive notifications when issues are detected with your sites.
@else
@foreach($notifications as $notification)
@if($notification->type === 'uptime') Uptime Alert @elseif($notification->type === 'ssl') SSL Alert @else Broken Links @endif @if(!$notification->is_read) New @endif

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }}
@if(!$notification->is_read)
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
@endforeach
{{ $notifications->links() }}
@endif
@if($notifications->isNotEmpty()) @endif
@endsection