fix - show status on friendlist
This commit is contained in:
parent
fdd595e3a9
commit
2049a60734
|
|
@ -4,16 +4,16 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<h1 id="usernameframe">Friends</h1>
|
<h1 id="usernameframe">Friends ({{ count($userFriends) }})</h1>
|
||||||
<a href="#" class="tab_selected">All Friends</a>
|
<a href="#" class="tab_selected">All Friends</a>
|
||||||
<a href="{{ route('requests') }}" class="tab">Pending Requests ({{ count(Auth::user()->getFriendRequests()) }})</a>
|
<a href="{{ route('requests') }}" class="tab">Pending Requests ({{ count(Auth::user()->getFriendRequests()) }})</a>
|
||||||
<br>
|
<br>
|
||||||
<!--
|
<!--
|
||||||
<form method="GET" action="{{ route('friends') }}">
|
<form method="GET" action="{{ route('friends') }}">
|
||||||
<p><input type="text" id="q" name="q" placeholder="Enter a Username..." value="{{ request()->q }}">
|
<p><input type="text" id="q" name="q" placeholder="Enter a Username..." value="{{ request()->q }}">
|
||||||
<button class="greybutton" type="submit">Search</button>
|
<button class="greybutton" type="submit">Search</button>
|
||||||
</p>
|
</p>
|
||||||
</form>-->
|
</form>-->
|
||||||
<br>
|
<br>
|
||||||
<div class="content_special" id="FriendsContainer" style="flex-wrap: wrap;">
|
<div class="content_special" id="FriendsContainer" style="flex-wrap: wrap;">
|
||||||
@foreach ($userFriends as $user)
|
@foreach ($userFriends as $user)
|
||||||
|
|
@ -24,7 +24,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="FriendsContainerBox1TextContainer">
|
<div id="FriendsContainerBox1TextContainer">
|
||||||
<a href="{{ route('profile', $user->id) }}" id="FeedContainerBox1Username">{{ $user->name }}</a>
|
<a href="{{ route('profile', $user->id) }}" id="FeedContainerBox1Username">{{ $user->name }}</a>
|
||||||
<p>"I'm new to ARCHBLOX!"</p>
|
@if (!empty($user->feedposts->last()->status))
|
||||||
|
<p>"{{ $user->feedposts->last()->status }}"</p>
|
||||||
|
@else
|
||||||
|
<p>"I'm new to ARCHBLOX!"</p>
|
||||||
|
@endif
|
||||||
@if (Cache::has('is_online_' . $user->id))
|
@if (Cache::has('is_online_' . $user->id))
|
||||||
<strong id="onlinestatus" class="onlinestatus_website">Website</strong>
|
<strong id="onlinestatus" class="onlinestatus_website">Website</strong>
|
||||||
@else
|
@else
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,11 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="FriendsContainerBox1TextContainer">
|
<div id="FriendsContainerBox1TextContainer">
|
||||||
<a href="{{ route('profile', $friend->id) }}" id="FeedContainerBox1Username">{{ $friend->name }}</a>
|
<a href="{{ route('profile', $friend->id) }}" id="FeedContainerBox1Username">{{ $friend->name }}</a>
|
||||||
<p>"I'm new to ARCHBLOX!"</p>
|
@if (!empty($friend->feedposts->last()->status))
|
||||||
|
<p>"{{ $friend->feedposts->last()->status }}"</p>
|
||||||
|
@else
|
||||||
|
<p>"I'm new to ARCHBLOX!"</p>
|
||||||
|
@endif
|
||||||
@if (Cache::has('is_online_' . $friend->id))
|
@if (Cache::has('is_online_' . $friend->id))
|
||||||
<strong id="onlinestatus" class="onlinestatus_website">Website</strong>
|
<strong id="onlinestatus" class="onlinestatus_website">Website</strong>
|
||||||
@else
|
@else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue