{{ $_user->name }}
{{ Cache::has('is-online-' . $_user->id) ? __('Online') : __('Offline') }}
{!! ori('interface-essential', 'dots', 'w-5 h-5') !!}
@foreach($this->conversation_message as $date => $items) @foreach ($items as $msg) @php $avatar = null; $name = null; $userID = null; $username = null; if ($msg->from_user_id == Auth::user()->id) { $avatar = avatar($msg->to()->id); $name = $msg->to()->name; $userID = $msg->to()->id; $username = $msg->to()->username; } else if ($msg->to_user_id == Auth::user()->id) { $avatar = avatar($msg->from()->id); $name = $msg->from()->name; $userID = $msg->from()->id; $username = $msg->from()->username; } $chat_msg = ao($msg->message) ? linkText(checkText($msg->message)) : null; $chat_direction = $msg->from()->id == auth()->user()->id ? 'is-right' : ''; $_chat_direction = $msg->from()->id == auth()->user()->id ? 'is-right' : ''; $_has_image_text = !empty($chat_msg) && !empty($msg->image) ? '-has-image-txt' : false; @endphp
@if (!empty($msg->image))
@endif @if (!empty($chat_msg))
{!! $chat_msg !!}
@endif {{ \Carbon\Carbon::parse($msg->created_at )->format('H:ia') }} @if ($_chat_direction) @if ($msg->status == 'readed') @else @endif @endif
@endforeach @endforeach
{!! ori('interface-essential', 'image-picture-loading', 'w-5 h-5') !!}
@if ($message_image)
{!! orion('close-1') !!}
@endif {{-- @foreach ($medias as $k => $v) @endforeach --}}
@php $error = false; if(!$errors->isEmpty()){ $error = $errors->first(); } if(Session::get('error._error')){ $error = Session::get('error._error'); } @endphp @if ($error)
{{ $error }}
@endif @if ($priced_message) @endif @if ($enable_link)
@endif
@if($this->conversation_message->isEmpty())

{{ __('No messages found!') }}

@endif @foreach($this->conversation_message as $date => $items) @endforeach
@if(!$errors->isEmpty()) @foreach ($errors->all() as $error)

{{ $error }}

@endforeach @endif
@push('scripts') @endpush