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

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 {{ \Illuminate\Support\Str::limit($post->title ?? '',10,' ...') }} {{$post->admin->name}} @foreach($post->categories as $key=>$category) {{$category->name}} @endforeach {{$post->view_count}} {{$post->is_approved == true ? 'Approved' : 'Pending '}} {{$post->status == true ? 'Published' : 'Pending'}} comment {{ $post->comments_count }} {{-- visibility --}} edit
@endsection @push('scripts') @endpush