{{-- Header with new layout --}}
{{-- First row: Subject (left) and Date badge (right) --}}

{{ $subject }}

{{-- Date badge --}} {{ $date }} {{-- Star / Unstar --}}
{{-- Second row: From (left) and To (right) --}}
From: {{ $fromName ? $fromName . ' <' . $fromEmail . '>' : $fromEmail }}
To: {{ strlen(implode(', ', $to)) > 50 ? substr(implode(', ', $to), 0, 50) . '...' : implode(', ', $to) }}
{{-- Third row: Attachments (if any) --}} @if (!empty($attachments) && count($attachments) > 0)

Attachments ({{ count($attachments) }})

@foreach ($attachments as $attachment) @endforeach
@endif
{{-- Message body --}}
@if (filled($html))
{{-- Render raw HTML from the email --}}
{!! $html !!}
@elseif (filled($text))
{{ $text }}
@else

No content.

@endif