@once @push('scripts') @endpush @endonce {{ $thread->title }} @if ($thread->noindex && $thread->nofollow) @elseif ($thread->noindex) @elseif ($thread->nofollow) @endif
{{--
--}}

{{ $thread->title }}

@php $catrgory_links = []; foreach ($thread->categories->reverse() as $category) { $catrgory_links[] = '' . $category->name . ''; } $catrgory_links = implode(', ', $catrgory_links); @endphp {{ str( __('Started :at by :user in :categories', [ 'categories' => $catrgory_links, 'at' => $thread->created_at->diffForHumans(), 'user' => '' . $thread->user->displayName . '', ]), )->toHtmlString() }}

{{-- @if ($thread->flag) @endif --}}
@if ($thread->flag)
{{ __('This record is flagged, pending review.') }}
@endif

{{ $thread->description }}

{{ __('Body') }}

{{ parse_markdown($thread->body) }}
@if ($thread->tags->isNotEmpty())
{{ __('Tags') }}: {{ str( $thread->tags->pluck('name')->transform(function ($tag) { return '' . $tag . ''; })->implode(', '), )->toHtmlString() }}
@endif @if ($thread->extra_attributes->isNotEmpty())
@foreach ($thread->extra_attributes as $key => $value)
{{ $key }}
{{ filter_var($value, FILTER_VALIDATE_URL) !== false ? str('')->toHtmlString() : $value }}
@endforeach
@endif @if (($settings['signature'] ?? null) && ($thread->user->meta_data['signature'] ?? null))
{{ __('Signature') }}
{{ str(nl2br($thread->user->meta_data['signature']))->toHtmlString() }}
@endif
@if ($replies->count())

{{ $thread->replies_count }} {{ __('Replies') }}

@endif
    @if ($thread->acceptedReply)
  • @livewire('forum.reply', ['thread' => $thread, 'reply' => $thread->acceptedReply, 'last' => false, 'showAccept' => $logged_in_user?->id == $thread->user_id, 'custom_fields' => $custom_fields], key('accepted-' . $thread->acceptedReply->id))
  • @endif @forelse ($replies as $reply) @if ($thread->acceptedReply?->id != $reply->id)
  • @livewire('forum.reply', ['thread' => $thread, 'reply' => $reply, 'last' => $loop->last, 'showAccept' => $logged_in_user?->id == $thread->user_id, 'custom_fields' => $custom_fields], key($reply->id))
  • @endif @empty
  • {{ __('No one is replied to this thread yet. Be first to reply!') }}
  • @endforelse @if ($replies->hasPages())
  • {{ $replies->links() }}
    {{--
    --}}
  • @else
  • @endif
@if ($thread->flag && ($settings['hide_flagged'] ?? null))
{{ __('This thread is under review.') }}
@elseif($this->thread->approved)
@auth
{{ $logged_in_user?->name }}
{{-- --}} @if ($errors->has('form.body'))
{{ $errors->first('form.body') }}
@endif
{{ __('Saved.') }}
@elseif($settings['guest_reply'] ?? false)
GU
{{-- --}} @if ($errors->has('form.body'))
{{ $errors->first('form.body') }}
@endif
@if ($settings['captcha'] ?? null) @if ($settings['captcha_provider'] == 'recaptcha') {{-- @php $captcha = new \Anhskohbo\NoCaptcha\NoCaptcha(config('captcha.secret'), config('captcha.sitekey')); @endphp {!! $captcha->renderJs() !!}
{!! $captcha->display(['data-theme' => 'auto']) !!}
--}} @push('scripts') @endpush @if ($errors->has('form.captcha'))
{{ $errors->first('form.captcha') }}
@endif @elseif ($settings['captcha_provider'] == 'trunstile') @push('scripts') @endpush
@if ($errors->has('form.captcha'))
{{ $errors->first('form.captcha') }}
@endif @elseif ($settings['captcha_provider'] == 'local')
@if ($errors->has('form.captcha'))
{{ $errors->first('form.captcha') }}
@endif @endif @endif
{{ __('Saved.') }} @if (($settings['captcha'] ?? null) && $settings['captcha_provider'] == 'recaptcha') {{ __('Reply') }} @else @endif
@else @endauth
@else

{{ __('Thread is not approved yet.') }}

@endif