@extends('admin.layouts.app') @section('title', 'Blog Management') @section('content')
@if(session('success')) @endif @if($posts->count() > 0)
@foreach($posts as $post) @endforeach
Title Status Published Date Created Actions
{{ $post->title }}
{{ $post->slug }}
@if($post->status === 'published') Published @else Draft @endif @if($post->published_at) {{ $post->published_at->format('M d, Y') }} @else Not published @endif {{ $post->created_at->format('M d, Y') }}
@csrf @method('DELETE')
{{ $posts->links() }}
@else
No blog posts found

Create your first blog post to get started.

Create New Post
@endif
@endsection