{{ __('Admin') }} {{ __('Blog') }}
{{ __('Admin · Marketing · Blog') }}

{{ __('Blog') }} {{ __('posts') }}.

{{ __('Write, publish, and SEO-optimise articles for the public marketing site. Drafts stay hidden until you publish them.') }}

{{-- KPI strip --}}
{{ __('Total posts') }}
{{ number_format($stats['total'] ?? 0) }}
{{ __('in catalog') }}
{{ __('Published') }}
{{ number_format($stats['published'] ?? 0) }}
{{ __('live on site') }}
{{ __('Drafts') }}
{{ number_format($stats['draft'] ?? 0) }}
{{ __('not yet published') }}
{{ __('Total views') }}
{{ number_format($stats['views'] ?? 0) }}
{{ __('all-time reads') }}
{{-- Toolbar: search + status filter --}}
@if (request('q') || request('status')) {{ __('Clear') }} @endif
{{-- Posts table --}}
{{ __('All posts') }}

{{ __('Detailed list') }}

@forelse ($posts as $p) @php $published = $p->status === 'published'; @endphp @empty @endforelse
{{ __('Post') }} {{ __('Category') }} {{ __('Status') }} {{ __('Views') }} {{ __('Date') }} {{ __('Actions') }}
@if ($p->image_url) @else @endif
{{ $p->title }}
/blog/{{ $p->slug }}
{{ $p->category->name ?? '—' }} @if ($published) {{ __('Published') }} @else {{ __('Draft') }} @endif {{ number_format($p->views) }} {{ optional($p->published_at)->format('M j, Y') ?? optional($p->created_at)->format('M j, Y') }}
{{ __('View') }} {{ __('Edit') }}
@csrf
@csrf @method('DELETE')
{{ __('No posts yet') }}
{{ __('Write your first article to start the blog.') }} {{ __('Create a post →') }}
@if ($posts->hasPages())
{{ $posts->withQueryString()->links() }}
@endif