@extends('admin.layouts.app') @section('title') {{ __('comment_list') }} @endsection @section('content')

{{ __('comment_list') }}

@if (userCan('post.create')) {{--  {{ __('create') }} --}} @endif
@if (userCan('post.update') || userCan('post.delete')) @endif @foreach ($comments as $comment) @if (userCan('page.update') || userCan('page.delete')) @endif @endforeach
# {{ __('page') }}{{ __('title') }}/{{ __('category') }} {{ __('name') }} {{ __('email') }} {{ __('comment') }} {{ __('display_date') }} {{ __('status') }} {{ __('action') }}
{{ $loop->index + 1 }} {{ $comment->page->title }}/ {{ $comment->page->category->name }}({{$comment->page->category->parentCategory->name}}) {{ $comment->name }} {{ $comment->email }} {{ $comment->comment }} @if(!empty($comment->display_date)) {{dateMonthTimeFormat($comment->display_date)}} @endif @if($comment->status == 1) {{ __('active') }} @else {{ __('inactive') }}@endif @if (userCan('page.update')) @endif @if (userCan('page.delete'))
@method('DELETE') @csrf
@endif
@endsection @section('style') @endsection @section('script') @endsection