@include('user-web.layouts.sidebar')
{{__('msg.friends')}}
@foreach($friendDetail as $friend)
@foreach($friend as $friend)
@php
$table=$friend->getTable();
array_push($friendNames,$friend->userName );
@endphp
@endforeach
@endforeach
Friends Suggestions
@foreach($users as $user)
@php
if($user->userName == $loggedIn->userName){
continue;
}
if (in_array($user->userName, $friendNames))
{
continue;
}
@endphp
@endforeach
Business Suggestions
-
@foreach($businesses as $business)
@php
if($business->businessName == $loggedIn->userName){
continue;
}
if (in_array($business->businessName, $friendNames))
{
continue;
}
@endphp
- @endforeach