@props(['thread', 'sharePosition' => 'md:ltr:right-0 md:rtl:left-0 bottom-full mb-2']) @php $socialLink = new \SocialLinks\Page([ 'url' => route('threads.show', $thread->slug), 'title' => $thread->title, 'text' => $thread->description, // 'image' => $thread->image, // 'icon' => $settings['icon'] ?? '', // 'twitterUser' => '@twitterUser', ]); @endphp
@if ($thread->flag) @else @endif {{ shortNumber($thread->replies_count ?? 0) }} {{ __('replies') }} {{ shortNumber($thread->views) }} {{ __('views') }}
@if ($thread->lastReply) {{ str( __(':user replied :at', [ 'user' => $thread->lastReply->user ? '' . $thread->lastReply->user->displayName . '' : '', 'at' => $thread->lastReply->created_at->diffForHumans(), ]), )->toHtmlString() }} {{-- User replied 3 minutes ago --}} @endif