@extends('dashboard.master') @section('title', 'Trashed Posts') @section('content')

Trashed Posts

Trashed Posts

@if ($errors->any())
Error!
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if (session("success"))
Success!

{{ session("success") }}

@endif
@forelse ($posts as $post) @empty @endforelse
# Title Author Category Tags Status Featured Comment Status Views Comment Count Action
{{ $loop->index + $posts->firstItem() }} {{ $post->title }} {{ $post->user->name }} {{ $post->category->title }} @forelse ($post->tags as $tag) {{ $tag->name }} @empty Empty @endforelse {{ $post->status ? "Published" : "Draft" }} {{ $post->is_featured ? "Yes" : "No" }} {{ $post->enable_comment ? "Enable" : "Disable" }} {{ $post->views }} {{ $post->comments_count }}
id) }}" class="btn btn-success">Restore
id) }}" method="POST"> @method("DELETE") @csrf
No post found!
@endsection @section("script") @endsection