{{$post->title}}
-
@php
$author_info=DB::table('users')->select('name')->where('id',$post->added_by)->get();
@endphp
- {{$post->created_at->format('d M, y')}}
- @foreach($author_info as $data) @if($data->name) {{$data->name}} @else Anonymous @endif @endforeach
Comments ({{$post->allComments->count()}})
@include('frontend.pages.comment', ['comments' => $post->comments, 'post_id' => $post->id, 'depth' => 3])