@foreach ($users as $index => $user) @if($element == "carousel")
{{ $user->name }}
{{ $user->name }}
@elseif ($element == "activity") @if (count($users) > 1) {{ $user->name }} @else
{{ $user->name }} @if (! auth()->check() || (auth()->check() && auth()->user()->username != $user->username)) @if($user->favorite) Following @else Follow @endif @endif
@endif @elseif ($element == "search")
{{ $user->name }}
{{ $user->name }}
@if($user->favorite) Following @else Follow @endif
@elseif ($element == "grid")
{{ $user->name }}
{{ $user->name }}
@else
{{ $user->name }}
@if (! auth()->check() || (auth()->check() && auth()->user()->username != $user->username)) @if($user->favorite) {{ __('web.UNFOLLOW') }} @else {{ __('web.FOLLOW') }} @endif @endif
@endif @endforeach