@section('page-title', __tr('Home'))
@section('head-title', __tr('Home'))
@section('keywordName', __tr('Home'))
@section('keyword', __tr('Home'))
@section('description', __tr('Home'))
@section('keywordDescription', __tr('Home'))
@section('page-image', getStoreSettings('logo_image_url'))
@section('twitter-card-image', getStoreSettings('logo_image_url'))
@section('page-url', url()->current())
@php
// $count_message = \App\Yantrana\Components\Messenger\Models\ChatModel::where("to_users__id", auth()->user()->_id)->whereNotIn("users__id", [auth()->user()->_id])->where("status", 1)->where("type", 1)->count();
@endphp
-
Received ({{$received_count}})
-
Sent ({{$sent_count}})
{{-- -
All ({{$all_count}})
--}}
{{-- Messages
--}}
@if(request("success"))
Message sent successfully
@endif
@php
$ignore = [];
@endphp
@foreach($data as $msg)
@php
if(!in_array($msg['uid'], $ignore))
{
array_push($ignore, $msg['uid']);
}else{
continue;
}
// dd($msg);
// if(!in_array($msg, $ignore))
// {
// dd($msg);
// if($msg['from_users__id'] == $my_id)
// {
// if(!in_array($msg['to_users__id'], $ignore))
// {
// array_push($ignore, $msg['to_users__id']);
// }else{
// continue;
// }
// }else if($msg['to_users__id'] == $my_id)
// {
// if(!in_array($msg['from_users__id'], $ignore))
// {
// array_push($ignore, $msg['from_users__id']);
// }else{
// continue;
// }
// }
// }
@endphp
-
{{ $msg['username'] ?? "NA" }}
{{ $msg['message'] ?? "NA" }}
{{ $msg['ago']}}
@endforeach