# Critical Security Events โ {{ now()->format('D, d M Y') }}
Hi **{{ $admin->name }}**,
The following **{{ $totalCount }} critical** audit event(s) occurred today on the Upepo Finance platform.
---
@foreach ($grouped as $category => $events)
## {{ ucfirst($category) }} ({{ $events->count() }})
@foreach ($events as $log)
**{{ strtoupper($log->action) }}** ยท `{{ $log->event }}`
{{ $log->status === 'denied' ? '๐ซ Denied' : ($log->status === 'failed' ? 'โ Failed' : 'โ
Success') }}
| Field | Value |
|---|---|
| Actor | {{ $log->actor_name ?? 'โ' }} ({{ $log->actor_type }}) |
| Role | {{ $log->actor_role ?? 'โ' }} |
| IP Address | {{ $log->ip_address ?? 'โ' }} |
| URL | {{ $log->url ? Str::limit($log->url, 60) : 'โ' }} |
| Time | {{ $log->created_at->format('H:i:s T') }} |
@if($log->auditable_type)
| Affected Record | {{ class_basename($log->auditable_type) }} #{{ $log->auditable_id }} |
@endif
@if($log->changes->isNotEmpty())
**Changes:**
| Field | Old Value | New Value |
|---|---|---|
@foreach($log->changes as $change)
| `{{ $change->field }}` | {{ $change->old_value ?? 'โ' }} | {{ $change->new_value ?? 'โ' }} |
@endforeach
@endif
@endforeach
@endforeach
---
Review All Audit Logs
This digest is sent automatically every day at 8:00 PM.
Only events with **critical** severity are included.
Thanks,
{{ config('app.name') }} Security