@extends('emails.partials.base_template') @section('title', $subject ?? 'Payment Event Alert') @section('subtitle', 'A payment event was recorded in the system') @section('content') @php $actor = $actor ?? null; @endphp
Hello Admin,
A new payment event has been recorded. Review the details below to ensure everything looks correct.

Payment Event Details

Event Type: {{ strtoupper($event->type) }}
Payment ID: #{{ $event->payment_id }}
Amount: @if (!is_null($event->amount_cents)) ${{ number_format($event->amount_cents / 100, 2) }} @else N/A @endif
Recorded By: @if ($actor) {{ $actor['name'] ?? 'Unknown' }} ({{ $actor['email'] ?? 'N/A' }}) @else System / Unknown User @endif
Recorded At: {{ optional($event->created_at)->format('Y-m-d H:i:s') }}
@if (!empty($event->detail))

Event Metadata

@foreach ($event->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
Action Required? If this event needs manual review or follow-up, please update the payment record in the admin dashboard.
@endsection