@extends('layouts.app') @section('title', 'Email Log') @section('content') @include('partials.flash') {{-- Health --}} @if(! $mailEnabled)
unsubscribe

Email is switched off in Settings — no emails are being sent; staff only get in-app notifications.

@endif @if($stats['waiting'] > 0 && $stats['oldest_waiting'] && $stats['oldest_waiting']->lt(now()->subMinutes(5)))
hourglass_top
{{ $stats['waiting'] }} queued {{ Str::plural('job', $stats['waiting']) }} waiting since {{ $stats['oldest_waiting']->format('j M H:i') }} — these emails haven’t been sent. The background queue isn’t being processed: check the server cron job runs php artisan schedule:run every minute (it now processes the queue too). See Background Jobs.
@endif
@foreach([ ['mark_email_read', 'text-primary', 'Sent (last 24h)', $stats['sent_24h']], ['error', 'text-error', 'Failed (last 24h)', $stats['failed_24h']], ['schedule_send', 'text-[#8a6d3b]', 'Waiting in queue', $stats['waiting']], ] as [$icon, $cls, $label, $val])
{{ $icon }}

{{ $val }}

{{ $label }}

@endforeach
{{-- Filters --}}
@if($q !== '' || $status || $type) Clear @endif
@forelse($logs as $log) @empty @endforelse
When To Email Status
{{ $log->created_at->format('j M Y H:i') }}

{{ $log->user?->name ?? '—' }}

{{ $log->email }}

{{ $log->typeLabel() }}

{{ $log->subject }}

@if($log->session)

Session: {{ $log->session->title }} · {{ $log->session->session_date?->format('j M Y') }}

@endif
@if($log->status === 'failed') error Failed

{{ \Illuminate\Support\Str::limit($log->error, 220) }}

@else mark_email_read Sent @endif
No emails recorded{{ $q !== '' || $status || $type ? ' for these filters' : ' yet' }}.
@if($logs->hasPages())
{{ $logs->links() }}
@endif

“Sent” means our mail server accepted the email. If someone still says they didn’t get it, ask them to check junk/spam and that the address above is correct — personal addresses (Gmail, Yahoo, Hotmail) are the most likely to filter it.

@endsection