@props([ 'isMe' => true, 'id' => null, 'user' => null, 'avatarClass' => 'bg-purple', 'bubbleClass' => 'w-50', 'replyClass' => 'w-45', 'initials' => '', 'time' => '', 'content' => '', 'message' => null, // Full message object for attachments ])
@if($message && $message->isReply() && $message->parent)
{{ __('Replying to') }} {{ $message->parent->sender->name_and_surname }}

@if($message->parent->hasMedia('attachments')) @endif {!! $message->parent->body ? nl2br(strip_tags($message->parent->body, '


  • ')) : __('Attachment') !!}

  • @endif
    @if($content)
    {!! $content !!}
    @endif @if($content || ($message && ($message->hasMedia('attachments') || $message->hasMedia('audio'))))
      @if(! $isMe)
    • @else
    • @endif {{-- Add Reaction Button --}}
    • 🙂
    • @if($isMe)
    • @endif {{-- Emoji Picker Popup --}}
      {{-- Quick Reactions --}} {{--
      --}} {{--
      --}} {{-- Search Input --}} {{-- --}} {{-- Tabs --}} {{--
      --}} {{-- Emoji Grid --}} {{--
      {{ __('No emoji found') }}
      --}}
    @endif
    @if($message && ($message->hasMedia('attachments') || $message->hasMedia('audio')))
    {{-- Audio Messages --}} {{-- @if($message->hasMedia('audio')) @foreach($message->getMedia('audio') as $audioFile)
    @endforeach @endif --}} {{-- File Attachments --}} @foreach($message->getMedia('attachments') as $attachment) @endforeach
    @endif
    • {{ $time }}
    • @if($message?->hasBeenReadByOthers())
    • @endif {{-- Display existing reactions --}} @if($message && $message->reactions->isNotEmpty())
    • @foreach($message->getGroupedReactions() as $reaction) @endforeach
    • @endif