@php $thresholdRecords = collect($thresholdRecords ?? [ (object) ['id' => 1, 'username' => 'Ali Khan', 'file_name' => 'financial_report_march.xlsx', 'created_at' => '2024-03-12', 'status' => 'completed'], (object) ['id' => 2, 'username' => 'Sara Ahmed', 'file_name' => 'survey_data.csv', 'created_at' => '2024-03-10', 'status' => 'processing'], (object) ['id' => 3, 'username' => 'Usman Tariq', 'file_name' => 'baseline_data.xlsx', 'created_at' => '2024-03-08', 'status' => 'failed'], (object) ['id' => 4, 'username' => 'Hina Malik', 'file_name' => 'monitoring_report.xlsx', 'created_at' => '2024-03-05', 'status' => 'completed'], ]); @endphp
@forelse ($thresholdRecords as $index => $record) @php $status = strtolower((string) ($record->status ?? '')); $statusStyles = match ($status) { 'completed' => 'background:#dcfce7;color:#15803d;', 'processing' => 'background:#dbeafe;color:#1d4ed8;', 'failed' => 'background:#fee2e2;color:#dc2626;', default => 'background:#f3f4f6;color:#4b5563;', }; @endphp @empty @endforelse
SR Username File Name Created At Status Actions
{{ $index + 1 }} {{ $record->username ?? '-' }} {{ $record->file_name ?? '-' }} {{ $record->created_at ?? '-' }} {{ $status ?: 'unknown' }}
No threshold records found. Add one now

Add alarm rule

Configure zone thresholds and rule parameters for real-time monitoring.

@csrf

Unique identifier for this specific alert stage.

The functional module where this rule applies.

System key for API and log references.

Rule Status

Determine if this rule is currently evaluating live data.

Zone Thresholds (Days)

Green
Yellow
Amber
Red

No upper limit