@extends('layouts.admin') @section('content')
عرض الكل
@if(auth()->user()->hasRole('superadmin')) @endif @foreach($comments as $comment) @if(auth()->user()->hasRole('superadmin')) @endif @endforeach
# المستخدم تمت المراجعة المحتوىipالمقال تحكم
{{$comment->id}} {{$comment->user==null?mb_strimwidth(($comment->adder_name), 0, 20, "...") : mb_strimwidth(($comment->user->name), 0, 20, "...")}}
{{$comment->content}} {{$comment->ip}} {{mb_strimwidth(($comment->article->title), 0, 80, "...")}} @can('comments-update') تحكم @endcan @can('comments-delete')
@csrf @method("DELETE")
@endcan
{{$comments->appends(request()->query())->render()}}
@endsection @push('scripts') @endpush