@extends('backend.layouts.app') @section('title', 'Posts') @push('styles') @endpush @section('content')
| Image | Title | Author | Category | Updated at | visibility | Is Approved | Status | comment | Action |
|---|---|---|---|---|---|---|---|---|---|
@if(Storage::disk('public')->exists('posts/'.$post->image) && $post->image)
@endif
|
{{ str_limit($post->title,40) }} | {{$post->user->name}} | @foreach($post->categories as $key=>$category) @if($key!=0) , @endif {{$category->name}} @endforeach | {{ $post->updated_at->diffForHumans() }} | {{$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 |