@extends('layouts.app') @section('content')
Total Rules

{{ $rules->count() }}

Active Rules

{{ $rules->where('is_active', 1)->count() }}

Notifications

{{ $notifications->count() }}

Failed

{{ $notifications->where('status', 'failed')->count() }}

Notification Rules
@if($rules->count() > 0) @foreach($rules as $rule)
{{ $rule->name }}

{{ $rule->description }}

{{ ucfirst($rule->alert_type) }} {{ $rule->trigger_condition }} Threshold: {{ $rule->threshold_value }} @foreach($rule->notification_channels ?? [] as $channel) {{ ucfirst($channel) }} @endforeach
@endforeach @else

No notification rules configured

Create First Rule
@endif
Recent Notifications
View All
@if($notifications->count() > 0) @foreach($notifications as $notification)
{{ $notification->subject }}
{{ $notification->channel }} → {{ $notification->recipient }}
{{ ucfirst($notification->status) }}
{{ $notification->created_at->diffForHumans() }}
@endforeach @else

No notifications sent yet

@endif
@endsection