@extends('layouts.app') @section('title') Friend Requests - {{ env('APP_NAME') }} @endsection @section('content')

Friend Requests

All Friends Pending Requests ({{ count(Auth::user()->getFriendRequests()) }})

@foreach ($userRequests as $userReq) @php $user = App\Models\User::find($userReq->sender_id) @endphp @if (!empty($user))
Profile Image
{{ $user->name }} @if (!empty($user->feedposts->last()->status))

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

@else

"I'm new to ARCHBLOX!"

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

You have no pending friend requests.

@endif

@endsection