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

{{ $user->name }}

@if ($user->settings->changed_name)

Previous Username: {{ $user->settings->old_name }}

@endif @if (Cache::has('is_online_' . $user->id)) Website @else Offline - Last Online {{ Carbon\Carbon::parse($user->last_seen)->diffForHumans() }} @endif
@if (!Auth::guest() && Auth::id() != $user->id) @if (Auth::user()->hasSentFriendRequestTo($user)) @elseif (Auth::user()->hasFriendRequestFrom($user))
@csrf
@elseif (Auth::user()->isFriendWith($user))
@csrf
@else
@csrf
@endif @switch($user->settings->message_preference) @case(2) @break @case(1) @if (Auth::user()->isFriendWith($user)) @else @endif @break @default @endswitch @endif

@if (!empty($user->feedposts->last()->status))
"{{ $user->feedposts->last()->status }}"
@else
"I'm new to ARCHBLOX!"
@endif profile image
{!! nl2br(e($user->blurb)) !!}

@guest

Joined: {{ $user->created_at->format('d/m/Y') }}

@else

Joined: {{ $user->created_at->format(Auth::user()->settings->date_preference) }}

@endguest

Place Visits: 0


ARCHBLOX Badges

@foreach ($badges as $badge) @foreach ($user->badges as $user_badge) @if ($badge->id == $user_badge)
{{ $badge->description }}

{{ $badge->title }}

@endif @endforeach @endforeach

Badges

This user has not collected any badges yet!

Games

This user hasn't made any games yet!


Friends ({{ $user->getFriendsCount() }})

@if ($user->getFriendsCount() > 0)
@if (Auth::check() && Auth::id() != $user->id && Auth::user()->getMutualFriendsCount($user) > 0) {{ Auth::user()->getMutualFriendsCount($user) }} Mutual Friends @endif
@foreach ($friends as $friend) @endforeach
@else

This user hasn't made friends with anyone!

@endif

@endsection