@extends('admin.layouts.admin') @section('title', 'Blog Posts') @section('page-title', 'Blog Posts') @section('admin-content')

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

New Post
@forelse($posts as $post) @empty @endforelse
Title Author Category Status Published Actions
{{ Str::limit($post->title, 40) }}
@if($post->excerpt)
{{ Str::limit($post->excerpt, 55) }}
@endif
{{ $post->author?->name ?? '—' }} @if($post->category) {{ $post->category }} @else @endif {{ ucfirst($post->status) }} {{ $post->published_at?->format('d M Y') ?? '—' }}
Edit @if($post->status === 'published') View @endif
@csrf @method('DELETE')
No blog posts yet. Create your first post →
@if($posts->hasPages())
{{ $posts->links() }}
@endif @endsection