@adminCan('blog.comment.update')
@csrf @method('PUT')
@endadminCan
@adminCan('blog.comment.update') @endadminCan @if (checkAdminHasPermission('blog.comment.view') || checkAdminHasPermission('blog.comment.delete') || checkAdminHasPermission('blog.comment.replay')) @endif @forelse ($comments as $comment) @adminCan('blog.comment.update') @endadminCan @if (checkAdminHasPermission('blog.comment.view') || checkAdminHasPermission('blog.comment.delete') || checkAdminHasPermission('blog.comment.replay')) @endif @empty @endforelse
{{ __('SN') }} {{ __('Comment') }} {{ __('Post') }} {{ __('Author') }} {{ __('Email') }}{{ __('Status') }}{{ __('Action') }}
{{ $loop->index + 1 }} {{ Str::limit($comment?->comment, 30, '...') }} {{ $comment?->post?->title }} {{ $comment?->name }} @if ($comment?->is_admin) {{ __('Admin') }} @endif {{ $comment?->email }} status ? 'checked' : '' }} data-toggle="toggle" data-onlabel="{{ __('Active') }}" data-offlabel="{{ __('Inactive') }}" data-onstyle="success" data-offstyle="danger"> @adminCan('blog.comment.view') @endadminCan @adminCan('blog.comment.delete') @endadminCan @adminCan('blog.comment.replay') @endadminCan
{{ $comments->onEachSide(3)->links() }}