@php $currsiteurl = $_SERVER['HTTP_HOST']; @endphp Chat @include('layouts.style')
@foreach($groups as $grp)
 {{ $grp->name }} {{ count($grp->member_unread_msgs)>0?count($grp->member_unread_msgs):'' }}
@endforeach
    @foreach(($groupmsgs) as $msg) @if($msg->user_id == auth()->user()->id)
  1. @if($msg->photo!="") @endif @if($msg->voice!="") @endif @if($msg->file!="") File ({{$msg->file}})
    View @endif {!!$msg->message!!}
    {{$msg->user->name}}
  2. @else
  3. @if($msg->photo!="") @endif @if($msg->voice!="") @endif @if($msg->file!="") File ({{$msg->file}})
    View @endif {!!$msg->message!!}
    {{$msg->user->name}}
  4. @endif @endforeach
@include('layouts.script')