@extends('layouts.admin') @section('title', 'Blog Posts - Admin Dashboard') @section('page-title', 'Blog Posts') @section('page-subtitle', 'Manage and create blog posts') @section('content')

All Posts

Total: {{ $posts->total() }} posts

Create New Post
@forelse($posts as $post) @empty @endforelse
Title Author Status Published Created Actions
@if($post->featured_image) {{ $post->title }} @else
@endif

{{ $post->title }}

{{ $post->slug }}

{{ $post->author->name }} {{ ucfirst($post->status) }} @if($post->published_at) {{ $post->published_at->format('M d, Y') }} @else — @endif {{ $post->created_at->format('M d, Y') }}
@csrf @method('DELETE')

No posts yet

Create your first blog post to get started

{{ $posts->links() }}
@endsection