@extends('layouts.portal') @section('title', 'Email log') @section('subtitle', 'Every message the platform sends, with delivery status, errors and the exact content that was queued.') @section('content') @php $total = $counts->sum(); $failed = (int) ($counts['failed'] ?? 0); $logMode = in_array($driver, ['log', 'array'], true); $statuses = ['sent' => 'Sent', 'queued' => 'Queued', 'failed' => 'Failed', 'skipped' => 'Skipped']; $label = fn ($s) => ucfirst(str_replace('_', ' ', (string) $s)); @endphp
MAIL_MAILER and the SMTP details in the server environment to go live.
@else
Sending through {{ $driver }} as {{ $from }}. Queue: {{ $queue }}{{ $queue === 'sync' ? ' (messages are sent immediately)' : '' }}.
@endif
| Sent | Recipient | Subject | Status | Error | Actions |
|---|---|---|---|---|---|
| {{ $l->created_at?->format('d M Y') }}{{ $l->created_at?->format('g:i A') }} | {{ $l->to_name ?: $l->to_email }}@if($l->to_name){{ $l->to_email }}@endif | {{ $l->subject }}{{ $l->mailable }} · {{ $label($l->category) }} | @if($l->status === 'skipped')Skipped@else |
@if($l->error){{ $l->error }}@else—@endif |
@if($retryable)
@endif
{{ $l->subject ?: 'Email details' }}To {{ $l->to_name ? $l->to_name.' · ' : '' }}{{ $l->to_email }} Delivery error {{ $l->error }}
Saved payload@if($l->payload){{ json_encode($l->payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) }}
@else
No payload was stored for this message, so it cannot be retried automatically. @endif
@if($retryable)
@elseif(in_array($l->status, ['failed', 'skipped'], true))
This message predates retry support and cannot be re-sent automatically.
@endif
|