@extends('admin.layouts.app') @section('title', 'Devotee Articles & Braj Kathas') @section('page-title', 'Devotee Articles & Braj Kathas') @section('content') {{-- ============ HEADER ============ --}}

✍️ Devotee Articles & Braj Kathas

Unified content repository of sacred pilgrim memoirs, temple darshan kathas, saint biographies, and festival guides written by authentic devotee authors & scholars.

📍 Location Requests 👥 Authors Directory ↗ + Add New Article
{{-- Flash Alerts --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('info'))
{{ session('info') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- ============ KPI STATS ============ --}} @php $activeStatus = $status ?? 'all'; @endphp
📚
Total Articles {{ number_format($counts['total'] ?? 0) }} All Contributed Stories
⏳
Pending Review {{ number_format($counts['pending_review'] ?? 0) }} Awaiting Approval
🟢
Published Live {{ number_format($counts['published'] ?? 0) }} Live on Portal
📝
Drafts {{ number_format($counts['draft'] ?? 0) }} Work in Progress
🚫
Rejected {{ number_format($counts['rejected'] ?? 0) }} Unfit / Inappropriate
{{-- ============ ALPINE ROOT & BULK MANAGER ============ --}}
{{-- ============ TOOLBAR ============ --}}
@if($search || $subject || $activeStatus !== 'all') Reset @endif
{{-- ============ FLOATING BULK BAR ============ --}}
Selected: articles
@csrf
{{-- ============ TABLE ============ --}}
@forelse($articles as $article) @php $rowNo = ($articles->currentPage() - 1) * $articles->perPage() + $loop->iteration; @endphp @empty @endforelse
# Article & Story Devotee Author Theme & Location Engagement Status Actions
{{ $rowNo }}
@if($article->cover_image) @else
📖
@endif
{{ $article->title }}
/{{ $article->slug }} ⏱️ {{ $article->reading_time }} 📅 {{ $article->created_at->format('d M Y') }}
{{ $article->author?->name ?? 'Devotee' }} @if($article->author?->author_badge) {{ $article->author->author_badge }} @endif
@if($article->author?->author_title)
🪶 {{ $article->author->author_title }}
@endif
{{ $article->subject_label }}
📍 {{ $article->place?->name ?? $article->city?->name ?? 'ब्रज मंडल' }}
👁️ {{ number_format($article->views_count) }} ❤️ {{ number_format($article->likes_count) }} 💬 {{ number_format($article->comments_count) }}
@if($article->status === 'published') Live @elseif($article->status === 'pending_review') Pending Review @elseif($article->status === 'draft') Draft @else Rejected @endif
{{-- 1. View Public Article --}} 👁️ {{-- 2. Edit Article Form --}} ✏️ {{-- 3. Quick Status Toggle --}}
@csrf
{{-- 4. Delete Record --}}
@csrf @method('DELETE')
🪶

No Devotee Articles Found

No articles match your current search or filter criteria.

+ Add First Article
{{-- ============ PAGINATION ============ --}} @if($articles->hasPages())
Showing {{ $articles->firstItem() ?? 0 }} to {{ $articles->lastItem() ?? 0 }} of {{ $articles->total() }} articles
{{ $articles->links() }}
@endif
@endsection