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

Manage Blog Posts

Create, edit, and manage your blog content

Add New Post
@if(session('success')) @endif
Blog Posts List
@forelse($posts as $post) @empty @endforelse
Title Category Author Status Views Published Actions
{{ $post->title }} @if($post->category) {{ $post->category->name }} @else Uncategorized @endif {{ $post->author->name }} @if($post->status === 'published') Published @else Draft @endif {{ $post->views_count }} @if($post->published_at) {{ $post->published_at->format('M d, Y') }} @else Not published @endif

No blog posts found. Click "Add New Post" to create one.

@if($posts->hasPages())
{{ $posts->links() }}
@endif
@endsection