Email Notification Test Dashboard

Preview and send test emails — same flow as popup testing

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- User & Quick links --}}

Current User

Name:
{{ $user->name }}
Email (test sends go here):
{{ $user->email }}
{{-- Active popup conditions (emails use same logic) --}}

Active Notification Conditions

These are the same conditions used for popups; emails would be sent for these if enabled.

@if(count($activePopups) > 0)
@foreach($activePopups as $type => $data)
{{ $type }}

{{ json_encode($data) }}

Active
@endforeach
@else

No conditions are currently active for your account.

@endif
{{-- Recent email logs --}}

Recent Email Notification Logs

@if($recentLogs->count() > 0)
@foreach($recentLogs as $log)
{{ $log->notification_type }}

{{ $log->sent_at ? $log->sent_at->format('M j, Y H:i') : $log->created_at->format('M j, Y H:i') }} · {{ $log->status }}

{{ ucfirst($log->status) }}
@endforeach
@else

No notification emails sent yet. Use "Send test" below to send one.

@endif
{{-- Preview & send test (same pattern as popups) --}}

Preview & Send Test Emails

Click a type to preview the email in the browser (like popup preview). Use "Send test" to email yourself.

@foreach($notificationTypes as $type => $info)
{{ $info['icon'] }}

{{ $info['label'] }}

{{ $info['desc'] }}

Preview
@csrf
@endforeach