@extends('admin.layouts.index') @section('content') @if ($errors->any())
@endif
Comment List
@foreach($comments as $key => $comment) @endforeach
# ID Comment User Post Title Date Status Action
{{ $key+1 }} {{ $comment->id }} {{ $comment->user->name }} {{ $comment->post->title }} {{$comment->created_at->diffForHumans() }} @if($comment->status == 1) Published @else Draft @endif @if($comment->status == 1) @else @endif
{{-- All Modal --}}
@foreach($comments as $comment) {{-- Delete comment Modal --}} @endforeach
@endsection