@push('title', $article->title)

{{ $article->title }}

{{ $article->short_story }}

@if ($article->user)
{{ $article->user->username }}

{{ $article->created_at->format('d F Y') }}

@else
{{ __('Unknown author') }}
@endif
{{ \Stevebauman\Purify\Facades\Purify::clean($article->full_story) }}
@forelse ($article->tags as $tag) {{ $tag->name }} @empty {{ __('No tags found.') }} @endforelse
@include('community.partials.article-reactions')
@if ($article->can_comment) @if (auth()->check() && !$article->userHasReachedArticleCommentLimit())

{{ __('Post a comment') }}

{{ __('Post a comment on the article, to let us know what you think about it') }}

@csrf
@endif

{{ __('Comments') }}

{{ __('Below you will see all the comments, written on this article') }}

@forelse ($article->comments as $comment)
{{ $comment->user->username }}
{{ $comment->created_at->diffForHumans() }} @if ($comment->canBeDeleted())
@method('DELETE') @csrf
@endif

{{ $comment->comment }}

@empty

{{ __('No comments yet. Be the first to comment!') }}

@endforelse
@endif

{{ __('Other articles') }}

@forelse($otherArticles as $art) {{ Str::limit($art->title, 25) }} @empty

{{ __('There is currently no other articles') }}

@endforelse
@if($article->user)

{{ __('Author') }}

{{ $article->user->username }}

{{ $article->user->motto ?? setting('start_motto') }}

{{ $article->user->online ? __('Online') : __('Offline') }}
{{ $article->user && !$article->user->hidden_staff ? $article->user->permission->rank_name ?? 'Member' : 'Member' }}
@endif