@extends('layouts.app') @section('title', $blogPost->title) @section('content')
{{-- Breadcrumb --}}

{{ $blogPost->title }}

Edit Back
{{-- Post Status Banner --}}
Status {{ $blogPost->created_at ? 'Published' : 'Draft' }}
Category {{ $blogPost->category?->name ?? 'Uncategorized' }}
Author {{ $blogPost->author?->username ?? 'Unknown' }}
Created {{ $blogPost->created_at ? $blogPost->created_at->format('M d, Y') : 'Not published' }}
@csrf
@csrf @method('DELETE')
{{-- Stats Row --}}
@php $detailStats = [ ['label' => 'Comments', 'value' => $stats['comments'] ?? 0, 'icon' => 'fa-comments', 'color' => 'primary'], ['label' => 'Approved', 'value' => $stats['approved_comments'] ?? 0, 'icon' => 'fa-check-circle', 'color' => 'success'], ['label' => 'Pending', 'value' => $stats['pending_comments'] ?? 0, 'icon' => 'fa-clock', 'color' => 'warning'], ['label' => 'Tags', 'value' => $stats['tags'] ?? 0, 'icon' => 'fa-tags', 'color' => 'info'], ['label' => 'Word Count', 'value' => number_format($stats['word_count'] ?? 0), 'icon' => 'fa-file-word', 'color' => 'secondary'], ['label' => 'Reading Time', 'value' => ($stats['reading_time'] ?? 0) . ' min', 'icon' => 'fa-book-reader', 'color' => 'danger'], ]; @endphp @foreach($detailStats as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}
@endforeach
{{-- Tabs --}}
{{-- Content Tab --}}
@include('admin.blog.posts.partials.tab-content', ['post' => $blogPost])
{{-- Comments Tab --}}
@include('admin.blog.posts.partials.tab-comments', ['comments' => $recentComments])
{{-- Tags Tab --}}
@include('admin.blog.posts.partials.tab-tags', ['post' => $blogPost])
{{-- Related Posts Tab --}} @if($relatedPosts->count() > 0) @endif
{{-- Toggle Publish Form --}} @endsection @push('styles') @endpush @push('scripts') @endpush