@extends('backend.layouts.app') @section('title', 'Posts') @push('styles') @endpush @section('content')
add CREATE

POST LIST

@foreach( $posts as $key => $post ) @endforeach
SL. Image Title Author Category visibility Is Approved Status comment Action
{{$key+1}} @if(Storage::disk('public')->exists('posts/'.$post->image)) {{$post->title}} @endif {{ str_limit($post->title,10) }} {{$post->user->name}} @foreach($post->categories as $key=>$category) @if($key!=0) , @endif {{$category->name}} @endforeach {{$post->view_count}} @if($post->is_approved == true) Approved @else Pending @endif @if($post->status == true) Published @else Pending @endif comment {{ $post->comments_count }} visibility edit
@endsection @push('scripts') @endpush