@extends('emails.partials.base_template') @section('title', $subject ?? 'System Activity Alert') @section('subtitle', 'A new activity was recorded in the system') @section('content') @php $actor = $actor ?? null; @endphp
Hello Admin,
A new activity log entry has been created in the system. Review the details below.

Activity Details

Action: {{ $log->action }}
Actor: @if ($actor) {{ $actor['name'] ?? 'Unknown' }} ({{ $actor['email'] ?? 'N/A' }}) @else System / Unknown User @endif
Entity: {{ $log->entity_type ?? 'N/A' }} #{{ $log->entity_id ?? 'N/A' }}
Recorded At: {{ optional($log->created_at)->format('Y-m-d H:i:s') }}
@if (!empty($log->detail))

Additional Details

@foreach ($log->detail as $key => $value)
{{ \Illuminate\Support\Str::headline($key) }}: @if (is_array($value)) {{ json_encode($value, JSON_PRETTY_PRINT) }} @else {{ $value ?? 'N/A' }} @endif
@endforeach
@endif
Need to follow up? You can review the full audit trail from the admin dashboard under the "Audit Logs" section.
@endsection