@extends('layouts.app') @section('content')

Created Posts

@csrf
@if($posts->count() > 0) @foreach($posts as $post) @endforeach
Image Name Category Action [TRASH] Action [EDIT] Status Published At
@if($post->featured) @endif {{ str_limit($post->title, 15) }} @foreach($post->categories()->get() as $pcategory) {{ str_limit($pcategory->name, 5) }} @endforeach {{ ucwords($post->post_status) }} @if($post->created_at) {{ $post->created_at->toFormattedDateString() }} @else --- @endif
@else

There is no Published|Drafted Post

@endif

Trashed Posts

@if($trashed_posts->count() > 0) @foreach($trashed_posts as $tpost) @endforeach
Image Name Category Action [DELETE] Action [RECOVER] Status Published At
@if($tpost->featured) @endif {{ str_limit($tpost->title, 15) }} @foreach($tpost->categories()->get() as $tpcategory) {{ str_limit($tpcategory->name, 5) }} @endforeach {{ ucwords($tpost->post_status) }} @if($tpost->created_at == null) --- @else {{ $tpost->created_at->toFormattedDateString() }} @endif
@else

There is no Trashed Post

@endif
@endsection