@extends('admin.layouts.app') @section('title', 'Posts & Stories') @section('page-title', 'Posts & Stories') @section('content')

Posts & Stories

Publish authentic Braj leelas, pilgrim stories, dharmik updates, and press bulletins across digital channels.

🌐 View Live @userCan('news.create') + Add Post @enduserCan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- ---- KPI Stats ---- --}} @php $curStatus = request('status', 'all'); $search = request('q', ''); @endphp
📰 {{ $statusCounts['all'] }} All Posts ✅ {{ $statusCounts['active'] }} Published ⭐ {{ $statusCounts['featured'] }} Featured 📦 {{ $statusCounts['inactive'] }} Drafts / Inactive
{{-- ---- Toolbar ---- --}}
{{-- Category Selector --}}
@if($curStatus !== 'all' && !empty($curStatus)) @endif @if($search !== '') @endif @if(request('per_page')) @endif
{{-- Per Page Selector --}}
@if($curStatus !== 'all' && !empty($curStatus)) @endif @if($search !== '') @endif @if(request('category_id')) @endif
{{-- ---- Bulk Action Bar ---- --}}
selected
{{-- ---- Table Card ---- --}}
@forelse($news as $post) @empty @endforelse
Post & Story Title Author & Source Category Status Published Actions
@if($post->image) {{ $post->title }} @else 📰 @endif
{{ $post->title }}
{{ $post->slug }} @if($post->is_featured) FEATURED @endif
{{ $post->author ?? 'Trust Editorial' }}
@if($post->source)
{{ $post->source }}
@endif
@if($post->category) {{ $post->category->name }} @else — @endif @if($post->is_active) Published @else Draft @endif
{{ $post->published_date ? \Carbon\Carbon::parse($post->published_date)->format('d M Y') : $post->created_at?->format('d M Y') }}
👁️ @userCan('news.edit') ✏️ @enduserCan @userCan('news.delete')
title . '"? This cannot be undone.') }});"> @csrf @method('DELETE')
@enduserCan
📰

{{ $search !== '' ? 'No posts match your search' : 'No posts found' }}

{{ $search !== '' ? 'Try a different search query or reset filters.' : 'Create your first post or story to get started.' }}

@if($search === '') @userCan('news.create') + Add Post @enduserCan @endif
{{-- ---- Pager ---- --}} @if($news->total() > 0)
Showing {{ $news->firstItem() }}–{{ $news->lastItem() }} of {{ $news->total() }} post(s)
{{ $news->links() }}
@endif
@push('scripts') @endpush @endsection