@extends('layouts.admin') @section('title','Blog') @section('content') @php $columns = [ 'title' => 'Post', 'status' => 'Status', 'author' => 'Author', 'taxonomy' => 'Taxonomy', 'published' => 'Published', 'seo' => 'SEO', 'actions' => 'Actions', ]; $activeChips = collect([ 'status' => request('status'), 'category_id' => request('category_id'), 'tag_id' => request('tag_id'), 'featured' => request('featured'), 'cornerstone' => request('cornerstone'), 'trashed' => request('trashed'), ])->filter(fn ($v) => filled($v)); $tone = fn (?string $status) => match ($status) { 'published' => 'success', 'scheduled' => 'warning', 'archived' => 'muted', default => 'muted', }; @endphp Categories Tags View blog New post @if(session('status'))
{{ session('status') }}
@endif
Posts {{ number_format($stats['total']) }} {{ number_format($stats['categories']) }} categories Published {{ number_format($stats['published']) }} Live when dated Drafts {{ number_format($stats['drafts']) }} {{ number_format($stats['scheduled']) }} scheduled Avg SEO {{ $stats['avg_seo_score'] !== null ? $stats['avg_seo_score'] : '—' }} {{ number_format($stats['cornerstone']) }} cornerstone
All @foreach(['published','draft','scheduled','archived'] as $status) {{ ucfirst($status) }} @endforeach Featured Cornerstone Trash
Post Status Author Taxonomy Published SEO @forelse($posts as $post) {{ $post->title }}
{{ $post->handle }}
{{ $post->status }} {{ $post->author_name ?: '—' }} {{ $post->categories->pluck('name')->take(2)->join(', ') ?: '—' }} @if($post->tags_count)
{{ $post->tags_count }} tags
@endif {{ optional($post->published_at)->format('Y-m-d') ?: '—' }} @if($post->seo_score !== null) {{ $post->seo_score }} @else — @endif
@if($post->trashed())
@csrf
@else Edit View @endif
@empty No posts match these filters. @endforelse {{ $posts->links() }}
    @foreach($categories->take(8) as $category)
  • {{ $category->name }} {{ $category->posts()->count() }}
  • @endforeach
Manage categories
@foreach($tags->take(16) as $tag) {{ $tag->name }} @endforeach
Manage tags
@endsection