@if ($comment->user) @else @endif
@isset($comment->user) {{ $comment->user->name ? $comment->user->name : $comment->user->username }} @if ($comment->user->id === $story->author->id) {{ __('Author') }} @endif @else
{{ __('Account deleted') }}
@endisset
{{ $comment->created_at->diffForHumans() }}
{{-- Save --}} @if (auth()->id() !== (int) $comment->user_id) @endif
@auth
    @if (auth()->id() !== isset($comment->user->id))
  • @endif @can('update', $comment)
  • @endcan @can('delete', $comment)
  • @endcan
@endauth
{{-- Comment --}} @if ($isEditing)
@if ($errors->has('editState.comment')) @error('editState.comment')

{{ $message }}

@enderror @endif
@if ($errors->has('editState.comment')) @error('editState.comment') @enderror @endif
{{ __('Cancel') }}
{{ __('Send') }}
@else

{!! makeClickableLinks(nl2br(e($comment->comment))) !!}

@endif
@auth @can('add_comments') @if ($story->comment_visibility === 'Followers') @if (getCurrentUser()->id === $story->author->id || getCurrentUser()->isFollowing($story->author)) @if (!$comment->parent_id) @else @endif @else @endif @else @if (!$comment->parent_id) @else @endif @endif @else @endcan @else {{ __('Reply') }} @endauth
{{-- Reply --}}
@if ($isReplying)
@csrf
@if ($errors->has('replyState.comment')) @error('replyState.comment')

{{ $message }}

@enderror @endif
@if ($errors->has('replyState.comment')) @error('replyState.comment') @enderror @endif
{{ __('Cancel') }}
{{ __('Send') }}
@endif
@foreach ($comment->replies as $reply)
@endforeach