@extends('layouts.backend.master') @section('title','Post') @push('css') @endpush @section('content')
add Add New Post

ALL POSTS {{ $posts->count() }}

{{----}} {{----}} @foreach($posts as $key=>$post) {{----}} @endforeach
ID Title Author visibility Is Approved Status Created AtUpdated AtAction
ID Title Author visibility Is Approved Status Created AtUpdated AtAction
{{ $key + 1 }} {{ str_limit($post->title,'10') }} {{ $post->user->name }} {{ $post->view_count }} @if($post->is_approved == true) Approved @else Pending @endif @if($post->status == true) Published @else Pending @endif {{ $post->created_at }}{{ $post->updated_at }} visibility edit
@endsection @push('js') @endpush