@if(count($posts)>0)
@foreach($posts as $post)
@php
$author_info=DB::table('users')->select('name')->where('id',$post->added_by)->get();
// dd($sub_cat_info);
// dd($author_info);
@endphp
@endforeach
S.N. |
Title |
Category |
Tag |
Author |
Photo |
Status |
Action |
S.N. |
Title |
Category |
Tag |
Author |
Photo |
Status |
Action |
{{$post->id}} |
{{$post->title}} |
{{$post->cat_info->title}} |
{{$post->tags}} |
@foreach($author_info as $data)
{{$data->name}}
@endforeach
|
@if($post->photo)
@else
@endif
|
@if($post->status=='active')
{{$post->status}}
@else
{{$post->status}}
@endif
|
|
{{$posts->links()}}
@else
No posts found!!! Please create Post
@endif