{{-- Notifications --}}
{{-- Confirmation Modal --}}

{{-- Main Content --}}
{{-- Filter Bar --}}
{{-- Per-page and bulk actions bar --}}
per page
{{-- Bulk Actions --}} @if(count($selected) > 0)
{{ count($selected) }} selected
@endif
{{-- Table --}}
@forelse($comments as $comment) @empty @endforelse
Author @if($sortField === 'user_id') @if($sortDirection === 'asc') @else @endif @endif
Comment @if($sortField === 'body') @if($sortDirection === 'asc') @else @endif @endif
Date @if($sortField === 'created_at') @if($sortDirection === 'asc') @else @endif @endif
Actions
@if($comment->user)
{{ $comment->user->name }} @if($comment->user->hasRole(\App\Enums\UserRole::BANNED)) Banned @endif
@else Unknown @endif

{{ $comment->body }}

{{ $comment->body }}

@if(strlen($comment->body) > 150) @endif
{{ $comment->created_at->diffForHumans() }}
@if($comment->user && !$comment->user->hasRole(\App\Enums\UserRole::BANNED)) @endif

No comments found matching your filters.

{{-- Pagination --}}
@if($comments->total() > 0) Showing {{ $comments->firstItem() }} to {{ $comments->lastItem() }} of {{ $comments->total() }} comments @endif
{{ $comments->links('pagination::tailwind') }}