@extends('layouts.landing') @section('title') {!! Str::words($comment->comment_body, 5) !!} @endsection @section('content')
Back to feeds
@forelse ($comment_likers as $like)
@php $user = App\Models\User::where('id', $like->user_id)->first(); @endphp
{{$user->first_name}} {{$user->last_name}}

@php $follows = App\Models\Follower::where('followed_user_id', Auth::user()->id)->where('user_id', $user->id)->where('follow_status', 1)->first(); @endphp @if($follows) Follows you . {{$user->state}}, {{$user->country}} @else {{$user->state}}, {{$user->country}} @endif

@if(!Auth::user()->id == $like->user_id)
@php $followers = App\Models\Follower::where('user_id', Auth::user()->id)->get(); $user_has_followed = App\Models\Follower::where('followed_user_id', $user->id)->where('user_id', Auth::user()->id)->where('follow_status', 1)->first(); $user_has_unfollowed = App\Models\Follower::where('followed_user_id', $user->id)->where('user_id', Auth::user()->id)->where('follow_status', 0)->first(); $user_has_not_followed = App\Models\Follower::where('user_id', Auth::user()->id)->first(); @endphp @if(count($followers) > 0) @if($user_has_followed) Following
@endif
@empty

No Likes

@endforelse
@include('elements.feeds-script') @endsection