@extends ("partials.layout") @section('title', "$actor->name's Profile") @section('content')

{{ $actor->name }}

@if ($user == null) {{ $actor->preferredUsername }}'s pfp @else {{ $actor->preferredUsername }}'s pfp @endif
@if ($user != null)

{{ $user->status }}

{{ $user->about_you }}

@if ($user->is_online ())

online ONLINE!

@else

Last online: {{ $user->last_online_at->diffForHumans () }}

@endif

Joined: {{ $user->created_at->diffForHumans () }}

@endif
@if ($user != null)

Mood: {{ $user->mood }}

View my: Blog | Bulletins

@endif

Contacting {{ $actor->name }}

@auth
@if (!auth ()->user ()->is ($user))
@if (auth ()->user ()->actor->friends_with ($actor))
@csrf Remove Friend
@elseif (in_array ($actor->actor_id, auth ()->user ()->received_requests ()))
@csrf Accept Friend Request
@elseif (in_array ($actor->actor_id, auth ()->user ()->sent_requests ()))
@csrf Cancel Request
@else
@csrf Add to Friends
@endif
@else @endif
@endauth

Federation handle:

@if ($user != null)

@php echo "@" . $user->name . "@" . explode ("/", env ("APP_URL"))[2] @endphp

@else

{{ $actor->local_actor_id }}

@endif
@if ($user != null)

{{ $user->name }}'s Interests

General

{{ $user->interests_general }}

Music

{{ $user->interests_music }}

Movies

{{ $user->interests_movies }}

Television

{{ $user->interests_television }}

Books

{{ $user->interests_books }}

Heroes

{{ $user->interests_heroes }}

@endif
@auth @if ($user != null && auth()->user()->is($user)) @endif @endauth @if ($user != null)

{{ $user->name }}'s Latest Blog Entries [View Blog]

There are no Blog Entries yet.

@endif

{{ $actor->name }}'s Bio

{!! $actor->summary !!}

@if ($user) {!! $user->blurbs !!} @endif
@if ($user != null)

{{ $actor->name }}'s Friend Space

[view all]

{{ $actor->name }} has {{ count ($user->mutual_friends ()) }} friends.

@foreach ($user->mutual_friends () as $key => $friend) @if ($key > 8) @break @endif @php $friend = \App\Models\Actor::where ('actor_id', $friend)->first (); @endphp @endforeach
@endif

{{ $actor->name }}'s Posts

{{ $actor->name }} has {{ count ($actor->get_posts ()) }} posts.

@if (auth ()->user () && auth ()->user ()->is ($user)) @endif
@foreach ($actor->get_posts () as $post) @endforeach
{{ $actor->get_posts ()->links ("pagination::default") }}
@endsection