@extends('layouts.app') @section('title', 'Email Logs') @section('breadcrumb') Dashboard Reports Emails @endsection @section('content') @include('partials._report-tabs')
total
Total emails
{{ number_format($stats['total']) }}
ok
Sent
{{ number_format($stats['sent']) }}
{{ $stats['failed'] }}
Failed
{{ number_format($stats['failed']) }}
QUEUED
Pending
{{ number_format($stats['pending']) }}
@include('partials._report-filter', ['exportType' => 'emails']) @include('partials._report-cap-banner')
Email log
{{ $logs->count() }} record(s)
@if($logs->isEmpty())
No emails sent
Email delivery logs will appear here once results are dispatched.
@else
@foreach($logs as $log) @php $s = strtolower($log->status ?? ''); $pillTone = 's-neutral'; if ($s === 'sent') $pillTone = 's-success'; elseif ($s === 'failed') $pillTone = 's-danger'; elseif ($s === 'pending') $pillTone = 's-warning'; @endphp @endforeach
# Candidate Post To Subject Status Failure Sent at  
{{ $loop->iteration }}
{{ $log->user?->name }}
{{ $log->application?->post?->code ?? '—' }} {{ $log->email_to }} {{ Str::limit($log->email_subject, 50) }} {{ ucfirst($log->status) }} @if($log->failure_reason) {{ Str::limit($log->failure_reason, 60) }} @else @endif @if($log->sent_at) {{ $log->sent_at->format('d M Y') }}
{{ $log->sent_at->format('h:i A') }} @else @endif
@if($log->examAttempt) @endif
@endif
@endsection @push('scripts') @endpush