@extends('backend.layout.template') @section('title') {{ $app_setting->meta_sub_title }} | All Blog Posts Management @endsection @section('css') @endsection @section('content') @php $totalPosts = $adminPosts->count(); $activePosts = $adminPosts->where('status', 1)->count(); $inactivePosts = $totalPosts - $activePosts; $totalViews = $adminPosts->sum('views'); @endphp

Post Management

Create, manage and publish all articles and blog contents.

Add New Post
{{ number_format($totalPosts) }}
Total Articles
{{ number_format($activePosts) }}
Active / Published
{{ number_format($inactivePosts) }}
Inactive / Draft
{{ number_format($totalViews) }}
Total Views
All Articles Directory

Overview of all published and drafted posts

Total: {{ $totalPosts }}
@foreach($adminPosts as $item) @endforeach
# Article / Post Details Category Views Status Actions
{{ $loop->iteration }}
@if(!empty($item->image)) {{ $item->name }} @else
@endif
{{ optional($item->categoryFunction)->name ?? 'Uncategorized' }}
@if(optional($item->subCategory)->name)
{{ optional($item->subCategory)->name }}
@endif
{{ number_format($item->views) }}
status == true ? 'checked' : ''}}> {{ $item->status ? 'Active' : 'Inactive' }}
@endsection @section('js') @endsection