@extends('layouts.app') @section('title', 'Alerts') @section('heading', 'Alerts') @section('subtitle', 'Rule-based alerts and plain-word watches · Telegram delivery when configured') @section('content')

Recent alerts

@csrf
@csrf
@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

@csrf
@foreach($watches as $w)

“{{ $w->phrase }}” → {{ $w->keywords }}

@csrf @method('DELETE')

@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])
@csrf @method('DELETE')
@endforeach

New rule

@include('alerts.rule-form', ['rule' => null])
@endsection