@php
$isEdit = $blog->exists;
$publishedDate = old('published_at', optional($blog->published_at)->format('Y-m-d') ?: now()->format('Y-m-d'));
$tagsValue = old('tags', is_array($blog->tags) ? implode(', ', $blog->tags) : '');
@endphp
@include('admin.header', [
'title' => $isEdit ? 'Edit Blog' : 'Create Blog',
'active' => 'blog',
'searchPlaceholder' => 'Search blog titles, categories, authors...'
])
Manage the title, content, image, and publishing status for this blog post.{{ $isEdit ? 'Edit Blog' : 'Create Blog' }}