@extends('layouts.app')
@section('title', 'Alerts')
@section('heading', 'Alerts')
@section('subtitle', 'Rule-based alerts and plain-word watches · Telegram delivery when configured')
@section('content')
@forelse($alerts as $al)
{{ $al->created_at->format('d M H:i') }} · {{ $al->status }}
@if($al->article)
{{ $al->message }}@else
{{ $al->message }}@endif
@if($al->error)
{{ $al->error }}
@endif
@empty No alerts yet.
@endforelse
{{ $alerts->links() }}
Watch in plain words
@foreach($watches as $w)
“{{ $w->phrase }}” → {{ $w->keywords }}
@endforeach
Alert rules
@foreach($rules as $r)
{{ $r->name }} {{ $r->is_active ? $r->channel : 'off' }} {{ $r->alerts_count }} alerts
@include('alerts.rule-form', ['rule' => $r])
@endforeach
New rule
@include('alerts.rule-form', ['rule' => null])
@endsection