@extends('layouts.app') @section('content')
@php($authed = request()->user()) @php($pid = $authed ? request()->user()->profile_id : null) @php($gp = $status->parent()->parent()) @if($gp)
@if( !in_array($gp->scope, ['public', 'unlisted', 'private']) || ($gp->scope == 'private' && !$authed) || ($gp->scope == 'private' && ($gp->profile_id != $pid && \App\Services\FollowerService::follows($pid, $gp->profile_id) == false)) )

This status cannot be viewed at this time.

@else
@if($gp->media()->count()) @endif
{{$gp->profile->username}}

{!!$gp->rendered!!}

@endif
@endif @php($parent = $status->parent())
@if( !in_array($parent->scope, ['public', 'unlisted', 'private']) || ($parent->scope == 'private' && !$authed) || ($parent->scope == 'private' && ($parent->profile_id != $pid && \App\Services\FollowerService::follows($pid, $parent->profile_id) == false)) )

This status cannot be viewed at this time.

@else
@if($parent->media()->count()) @endif
{{$parent->profile->username}}

{!!$parent->rendered!!}

@endif
@if($status->is_nsfw)

This comment may contain sensitive content. Show

{{$status->profile->username}}

{!! $status->rendered !!}

@else
{{$status->profile->username}}

{!! $status->rendered !!}

{{$status->created_at->diffForHumans()}} @if(Auth::check() && $status->profile_id == Auth::user()->profile->id)
@csrf
@endif
@endif
@if($status->comments->count())
@if($status->comments()->first()->media()->count()) @endif
{{$status->comments()->first()->profile->username}}

{!!$status->comments()->first()->rendered!!}

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush