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