Chat
    @if(count($chatList)==0)
  • No Chats Found
  • @endif @if(count($chatList)>0) @foreach($chatList as $key=>$chatList1) @if(isset($chatList1->from_users) && $chatList1->to_users) @if($chatList1->from_user_id==Auth::user()->id)
  • @if($chatList1->to_users->getRawOriginal('profile_pic')) Avatar @else {{$chatList1->to_users->first_name[0] . '' . $chatList1->to_users->last_name[0]}} @endif
    {{isset($chatList1->to_users->owner_name)?$chatList1->to_users->owner_name:''}} @if(isset($chatList1->unreadCount) && $chatList1->unreadCount>0)
    {{$chatList1->unreadCount}}
    @endif

    {{isset($chatList1->to_users->roles[0]->name)?$chatList1->to_users->roles[0]->name:''}}

  • @else
  • @if($chatList1->from_users->getRawOriginal('profile_pic')) Avatar @else {{$chatList1->from_users->first_name[0] . '' . $chatList1->from_users->last_name[0]}} @endif
    {{isset($chatList1->from_users->owner_name)?$chatList1->from_users->owner_name:''}} @if(isset($chatList1->unreadCount) && $chatList1->unreadCount>0)
    {{$chatList1->unreadCount}}
    @endif

    {{isset($chatList1->from_users->roles[0]->name)?$chatList1->from_users->roles[0]->name:''}}

  • @endif @endif @endforeach @endif