@extends('layouts.app') @section('content')

Email History

{{-- Success Message --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Send Email Form (Quick Send) --}}
@csrf
{{-- Email History Table --}}
{{-- New Column --}} {{-- Wider for 2 buttons --}} @forelse($emails as $email) {{-- Status Column --}} @empty @endforelse
Recipient Subject Message Preview Type StatusDate Actions
{{ $email->recipient_email }} {{ Str::limit($email->subject, 30) }} {{ Str::limit(strip_tags($email->message), 40) }} {{ $email->recipient_type }} {{-- Since your DB might not have a 'status' column yet, we assume queued/sent if it exists in DB --}} Queued/Sent {{ $email->created_at->format('M d, Y H:i') }}
{{-- Resend Button --}}
@csrf
{{-- Delete Button --}}
@csrf @method('DELETE')
No email history found
@endsection @section('scripts') @endsection