@extends('layouts.app') @section('title', __('Blog Posts - Admin')) @section('content')
{{ __('Manage all blog posts, drafts and published articles.') }}
| {{ __('ID') }} | {{ __('Post') }} | {{ __('Category') }} | {{ __('Author') }} | {{ __('Status') }} | {{ __('Comments') }} | {{ __('Date') }} | {{ __('Actions') }} | |
|---|---|---|---|---|---|---|---|---|
| #{{ $post->id }} |
@if($imageUrl)
{{ \Illuminate\Support\Str::limit(
$post->slug,
45
) }}
|
{{ $post->category?->name ?: __('Uncategorized') }} |
{{ $post->author?->username
?: __('Unknown') }}
@if(filled($post->author?->email))
{{ $post->author->email }}
@endif
|
@if($post->created_at) {{ __('Published') }} @else {{ __('Draft') }} @endif | {{ number_format( (int) ($post->comments_count ?? 0) ) }} |
@if($post->created_at)
{{ $post->created_at->format('M d, Y') }}
{{ $post->created_at->diffForHumans() }}
@else
{{ __('N/A') }}
{{ __('Not published') }}
@endif
|
{{-- Correct route-generated actions --}}
{{-- View --}}
{{ __('View') }}
{{-- Edit --}}
{{ __('Edit') }}
{{-- Publish/unpublish --}}
{{-- Duplicate --}}
{{-- Delete --}}
|
|
{{ __('No blog posts found') }}{{ __('Try adjusting your search or filter criteria.') }} {{ __('Create First Post') }} |
||||||||