@php $records = collect($alert_thresholdRecords ?? [ (object)['username' => 'Ali Khan', 'file_name' => 'financial_report_march.xlsx', 'created_at' => '2024-03-12', 'status' => 'completed'], (object)['username' => 'Sara Ahmed', 'file_name' => 'survey_data.csv', 'created_at' => '2024-03-10', 'status' => 'processing'], (object)['username' => 'Usman Tariq', 'file_name' => 'baseline_data.xlsx', 'created_at' => '2024-03-08', 'status' => 'failed'], (object)['username' => 'Hina Malik', 'file_name' => 'monitoring_report.xlsx', 'created_at' => '2024-03-05', 'status' => 'completed'], ]); @endphp
@foreach ($records as $index => $record) @php $statusValue = strtolower($record->status ?? 'completed'); $statusClass = in_array($statusValue, ['completed', 'processing', 'failed']) ? $statusValue : 'completed'; $createdAt = $record->created_at ?? null; $createdAtText = $createdAt instanceof \Carbon\Carbon ? $createdAt->format('Y-m-d') : ($createdAt ? \Carbon\Carbon::parse($createdAt)->format('Y-m-d') : '-'); @endphp @endforeach
SR Username File Name Created At Status Actions
{{ $index + 1 }} {{ $record->username ?? $record->user_name ?? '-' }} {{ $record->file_name ?? $record->filename ?? '-' }} {{ $createdAtText }} {{ $statusValue }}
{{-- MODAL --}}

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 integrations

Zone Thresholds (Days)

GREEN
YELLOW
AMBER
RED