{{-- resources/views/admin/posts/index.blade.php --}} @extends('layouts.admin') @section('title', 'Blog') @section('breadcrumb') Dashboard Blog @endsection @section('content') {{-- Filters --}}
@if(request()->hasAny(['search','status']))Clear@endif
{{-- Posts table --}}
@forelse($posts as $post) @empty @endforelse
Title Author Category Status SEO Published Actions
{{ Str::limit($post->title, 50) }}
/blog/{{ $post->slug }}
{{ $post->author?->name ?? '—' }}
{{ $post->category?->name ?? '—' }} {{ ucfirst(str_replace('_',' ',$post->status)) }} @php $score = app(\App\Services\SEO\SeoScoringService::class)->score($post) @endphp
{{ $score }}
{{ $post->published_at?->format('d M Y') ?? '—' }}
@can('posts.edit') Edit @endcan @if($post->isDraft()) @can('posts.create')
@csrf
@endcan @endif @if($post->isPendingReview()) @can('posts.approve')
@csrf
@endcan @endif
No posts yet

Share your expertise. Create your first blog post to start building search authority.

@can('posts.create') Write First Post @endcan
{{ $posts->links() }}
@endsection