{{-- AI Recap — generates a 2-line summary of the entire
thread so an agent can catch up instantly. Cached
for 30 min server-side so re-clicking on an
unchanged thread is free. --}}
@if($this->isAiConfigured)
@endif
@elseif($message->direction === 'outbound')
{{-- Outgoing Message (right-aligned, blue tint) --}}
{{ $message->sender?->initials ?? __('Me') }}
{{-- Per-message delete (soft-delete via Message::SoftDeletes).
Hidden until you hover the message bubble. For OUTBOUND
the confirm explicitly notes the email/DM cannot be
recalled from the recipient's mailbox — important so
users understand this only deletes the local copy. --}}
{{ $message->created_at->diffForHumans() }}{{ __('via') }} {{ ucfirst($conversation->channel ?? __('email')) }}{{ $message->sender?->name ?? __('You') }}