@extends('backend.layouts.master') @section('main-content')
@include('backend.layouts.notification')
Post Lists
Add Post
@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) {{$post->photo}} @else avatar.png @endif @if($post->status=='active') {{$post->status}} @else {{$post->status}} @endif
@csrf @method('delete')
{{$posts->links()}} @else
No posts found!!! Please create Post
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush