@extends('admin.layouts.index') @section('content')
@if ($errors->any())| # | 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 |