{{-- chat_panel.blade.php Rendered as a JSON fragment via ConversationController::chatPanel() Injected into #wacRightPanel β€” NO styles here (parent index.blade.php has them) NO auto-refresh here β€” parent index.blade.php calls wacRefreshBody() --}}
{{-- Header --}}
{{-- Messages --}}
@php $prevDate = null; @endphp @forelse($messages as $msg) @php $msgDate = $msg->created_at->format('Y-m-d'); $isOut = $msg->direction === 'outgoing'; $today = now()->format('Y-m-d'); $yesterday = now()->subDay()->format('Y-m-d'); $dateLabel = $msgDate === $today ? 'Today' : ($msgDate === $yesterday ? 'Yesterday' : $msg->created_at->format('d M Y')); @endphp @if($msgDate !== $prevDate) @php $prevDate = $msgDate; @endphp @endif @empty
πŸ’¬
No messages yet
@endforelse
{{-- Agent indicator --}}
Ctrl+Enter to send
{{-- Input --}}