@foreach($chats as $chat) @if($chat->sender_id == Auth::user()->id)
@endif
@else
@endif
@endforeach
@endif
@else
@endif
@endforeach