@include('admin.header', [ 'title' => 'Blog Management', 'active' => 'blog', 'searchPlaceholder' => 'Search blog titles, categories, authors...' ])

Blog

Create, edit, and publish BAOPCL website blog posts.

Create Blog
@if (session('success'))
{{ session('success') }}
@endif
Published
{{ $publishedCount ?? 0 }}
Drafts
{{ $draftCount ?? 0 }}
Scheduled
{{ $scheduledCount ?? 0 }}

All Blog Posts

@forelse ($blogs as $blog) @empty @endforelse
Post Category Author Status Updated Action
{{ $blog->featured_image_alt ?: $blog->title }}
{{ $blog->title }}
{{ \Illuminate\Support\Str::limit($blog->excerpt ?: $blog->slug, 72) }}
{{ $blog->category ?: 'Uncategorized' }} {{ $blog->author->name ?? 'Admin' }} {{ ucfirst($blog->status) }} {{ optional($blog->updated_at)->format('d M Y') }}
Edit
@csrf @method('DELETE')
No blog posts yet
Create your first BAOPCL blog post for the website.
Create Blog
@if (($blogs ?? null) && $blogs->hasPages())
{{ $blogs->links() }}
@endif
@include('admin.footer')