Live Conversation
@foreach($ticket->replies as $reply)
@php
$bubbleClass = $reply->is_system_message ? 'chat-system' : ($reply->is_admin_reply ? 'chat-admin' : 'chat-user');
$sender = $reply->is_system_message ? 'System' : ($reply->is_admin_reply ? 'Admin Support' : 'You');
@endphp
{{ $sender }}
{{ $reply->created_at->diffForHumans() }}
{{ $reply->message }}
@if($reply->attachment)
Attachment
@endif
@endforeach
@if($ticket->status !== 'closed')
@endif