@php $previous_time = isset($latest_message_at) ? Carbon::parse($latest_message_at)->format('Y/m/d H:i') : null; @endphp @foreach($messages as $message) @php $message_time = Carbon::parse($message['created_at'])->format('Y/m/d H:i'); @endphp @if($previous_time != $message_time) @php $previous_time = $message_time; @endphp @endif @if($message['talker_id'] == $f_chat_user_id)
@if(!empty($message['message']))

@php echo nl2br($message['message']); @endphp

@endif @if(!empty($message['file_path']) && Storage::disk('chat')->has($message['id'].'/' . $message['file_path']))

@if(\App\Helper\SystemHelper::checkImageFileExtension($message['file_path'])) @endif @if(is_object(Auth::guard('admin')->user())) {{ Str::limit($message['file_name'], 12, '...') }} {{--$message['id']]) }}">--}} @else {{ Str::limit($message['file_name'], 12, '...') }} {{--$message['id']]) }}">--}} @endif

@endif
@else
@endif @endforeach