@extends('layouts.app') @section('title') {{ $user->name }}'s Friends - {{ env('APP_NAME') }} @endsection @section('content')

{{ $user->name }}'s Friends ({{ $user->getFriendsCount() }})

All Friends @auth @if ($user->id != Auth::id()) Mutual Friends ({{ Auth::user()->getMutualFriendsCount($user) }}) @endif @endauth


@foreach ($friends as $friend)
Profile Image
{{ $friend->name }} @if (!empty($friend->feedposts->last()->status))

"{{ $friend->feedposts->last()->status }}"

@else

"I'm new to ARCHBLOX!"

@endif @if (Cache::has('is_online_' . $friend->id)) Website @else Offline - Last Online {{ Carbon\Carbon::parse($friend->last_seen)->diffForHumans() }} @endif
@if (Auth::id() == $user->id)
@csrf
@endif
@endforeach @if (!$user->getFriendsCount())

{{ $user->name }} hasn't made friends with anyone yet.

@endif {{ $friends->links() }}

@endsection