@extends('layouts.admin') @section('title', __('blog.blog_dashboard')) @section('content')

{{ __('blog.blog_management') }}

{{ __('blog.overview_description') }}

{{ __('blog.view_all_posts') }}
{{ __('blog.total_posts') }}
{{ $stats['total'] }}
{{ __('blog.total_views') }}
{{ number_format($quickStats['total_views']) }}
{{ __('blog.comments') }}
{{ number_format($quickStats['total_comments']) }}
{{ __('blog.pending') }}: {{ number_format($quickStats['pending_comments']) }}
{{ __('blog.this_week') }}
{{ number_format($quickStats['this_week_posts']) }}
{{ __('blog.new_posts') }}
{{ __('blog.recent_blog_posts') }}
@if($recentBlogs->count() > 0)
@foreach($recentBlogs as $blog) @endforeach
{{ __('general.title') }} {{ __('blog.category') }} {{ __('blog.author') }} {{ __('general.active') }} {{ __('blog.published') }} {{ __('general.actions') }}
{{ $blog->title }} @if($blog->is_featured) @endif {{ $blog->category->name ?? __('blog.uncategorized') }} {{ $blog->author->name ?? __('blog.unknown') }} {{ __('blog.' . $blog->status) }} {{ $blog->published_at ? $blog->published_at->format('M d, Y') : '-' }}
@csrf @method('DELETE')
@else

{{ __('blog.no_blog_posts_found') }}

{{ __('blog.create_new_post') }}
@endif
{{ __('blog.categories') }}
@php $categories = \App\Models\BlogCategory::active()->ordered()->limit(5)->get(); @endphp @if($categories->count() > 0)
    @foreach($categories as $category)
  • {{ $category->name }} {{ $category->blogs()->count() }}
  • @endforeach
@if(\App\Models\BlogCategory::count() > 5) {{ __('blog.view_all_categories') }} @endif @else

{{ __('blog.no_categories_found') }}

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush =======
@if($recentBlogs->count() > 0)
@foreach($recentBlogs as $blog) @endforeach
{{ __('general.title') }} {{ __('blog.category') }} {{ __('blog.author') }} {{ __('general.active') }} {{ __('blog.published') }} {{ __('general.actions') }}
{{ $blog->title }} @if($blog->is_featured) @endif {{ $blog->category->name ?? __('blog.uncategorized') }} {{ $blog->author->name ?? __('blog.unknown') }} {{ __('blog.' . $blog->status) }} {{ $blog->published_at ? $blog->published_at->format('M d, Y') : '-' }}
@csrf @method('DELETE')
@else

{{ __('blog.no_blog_posts_found') }}

{{ __('blog.create_new_post') }}
@endif
{{ __('blog.quick_actions') }}
{{ __('blog.categories') }}
@php $categories = \App\Models\BlogCategory::active()->ordered()->limit(5)->get(); @endphp @if($categories->count() > 0)
    @foreach($categories as $category)
  • {{ $category->name }} {{ $category->blogs()->count() }}
  • @endforeach
@if(\App\Models\BlogCategory::count() > 5) {{ __('blog.view_all_categories') }} @endif @else

{{ __('blog.no_categories_found') }}

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush
{{ __('blog.recent_blog_posts') }}
@if($recentBlogs->count() > 0)
@foreach($recentBlogs as $blog) @endforeach
{{ __('general.title') }} {{ __('blog.category') }} {{ __('blog.author') }} {{ __('general.active') }} {{ __('blog.published') }} {{ __('general.actions') }}
{{ $blog->title }} @if($blog->is_featured) @endif {{ $blog->category->name ?? __('blog.uncategorized') }} {{ $blog->author->name ?? __('blog.unknown') }} {{ __('blog.' . $blog->status) }} {{ $blog->published_at ? $blog->published_at->format('M d, Y') : '-' }}
@csrf @method('DELETE')
@else

{{ __('blog.no_blog_posts_found') }}

{{ __('blog.create_new_post') }}
@endif
{{ __('blog.quick_actions') }}
{{ __('blog.categories') }}
@php $categories = \App\Models\BlogCategory::active()->ordered()->limit(5)->get(); @endphp @if($categories->count() > 0)
    @foreach($categories as $category)
  • {{ $category->name }} {{ $category->blogs()->count() }}
  • @endforeach
@if(\App\Models\BlogCategory::count() > 5) {{ __('blog.view_all_categories') }} @endif @else

{{ __('blog.no_categories_found') }}

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush