@include('admin.header')

Email Details

Email Information
Back to List @if($emailLog->status !== 'sent')
@csrf
@endif
Basic Information
Email ID: {{ $emailLog->id }}
Status: {{ ucfirst($emailLog->status) }}
Sent At: @if($emailLog->sent_at) {{ $emailLog->sent_at->format('M j, Y H:i') }} @else Not Sent @endif
Sender: {{ $emailLog->sender->name ?? 'System' }}
Recipient Information
Recipient Name: {{ $emailLog->recipient_name ?? 'N/A' }}
Email Address: {{ $emailLog->recipient_email }}
Document: @if($emailLog->document) {{ $emailLog->document->document_type }} - {{ $emailLog->document->orderConfirmation->order_number ?? 'N/A' }} @else Document Deleted @endif
Email Content
Subject:

{{ $emailLog->subject }}

Message:
{!! nl2br(e($emailLog->message)) ?? 'No message content' !!}
@if($emailLog->document && Storage::disk('public')->exists($emailLog->document->file_path))
Attached Document
{{ $emailLog->document->file_name }} ({{ number_format($emailLog->document->file_size / 1024, 2) }} KB)
Download
@endif
@include('admin.footer')