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

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

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

@foreach ($data['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() == $data['user']->id)
@csrf
@endif
@endforeach @if (!$data['user']->getFriendsCount())

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

@endif {{ $data['friends']->links() }}

@endsection