@php $currentIndent ??= 0; if (! view()->exists($paginationView = Theme::getThemeNamespace('partials.pagination'))) { $paginationView = 'pagination::bootstrap-5'; } @endphp
@foreach($comments as $comment) @continue(! $comment->is_approved && $comment->ip_address !== request()->ip())
@if ($comment->website) {{ $comment->name }} @else {{ $comment->name }} @endif
@if (! $comment->is_approved) {{ trans('plugins/fob-comment::comment.front.list.waiting_for_approval_message') }} @endif @if($comment->is_admin) {!! BaseHelper::clean($comment->formatted_content) !!} @else

{{ $comment->formatted_content }}

@endif
@if ($comment->replies->count()) @include('plugins/fob-comment::partials.list', [ 'comments' => $comment->replies, 'currentIndent' => $currentIndent + 1, ]) @endif
@endforeach
@if ($comments instanceof \Illuminate\Contracts\Pagination\LengthAwarePaginator && $comments->hasPages())
{{ $comments->appends(request()->except('page'))->links($paginationView) }}
@endif