{{-- @if (count($chat->messages) > 1) --}} @foreach ($chat->messages as $message) @if ($message->input != null)
@php $avatarUrl = isset(Auth::user()->avatar) ? Auth::user()->avatar : url('/assets/img/auth/default-avatar.png'); if (str_starts_with(Auth::user()->avatar, 'upload') || str_starts_with(Auth::user()->avatar, 'assets')) { $avatarUrl = '/' . Auth::user()->avatar; } @endphp
{{ $message->input }}
@if ($message->pdfPath != null && $message->pdfPath != '')
@endif @if ($message->images != null) @foreach (explode(',', $message->images) as $image)
@endforeach @endif @endif
@if ($message->output != null)
{!! $message->output !!}
@endif
@if ($message->outputImage != null && $message->outputImage != '')
outputImage }} />
@endif @endforeach {{-- @endif --}} @if (count($chat->messages) == 0)
{{ __('You have no message... Please start typing.') }}
@endif