@extends('backend.layouts.master')
@section('title') {{ __('sidebar.post_title_name') }} @endsection
@section('main-content')
@include('backend.layouts.notification')
@if(count($posts)>0)
{{ __('sidebar.post_snumber') }} |
{{ __('sidebar.post_title') }} |
{{ __('sidebar.post_tag') }} |
{{ __('sidebar.post_photo') }} |
{{ __('sidebar.post_status') }} |
{{ __('sidebar.post_action') }} |
@foreach($posts as $post)
@php
$author_info=DB::table('users')->select('name')->where('id',$post->added_by)->get();
@endphp
{{$post->id}} |
{{$post->title}} |
{{$post->tags}} |
@if($post->photo)
@else
@endif
|
@if($post->status=='active')
{{$post->status}}
@else
{{$post->status}}
@endif
|
|
@endforeach
@else
No posts found!!! Please add post
@endif
@endsection