@extends('admin.layouts.app') @section('title', 'Content Categories') @section('content')
{{-- Page Header --}}
Content Classification

Content Categories {{ $categories->total() }} Categories

Taxonomy and tags for temples, sacred places, upcoming events, news articles, and community organizations.

{{-- Alerts --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Stats Cards --}}
Total Categories
{{ $categories->total() }}
Defined categories
Active
{{ $categories->where('is_active')->count() }}
Visible on website
Inactive
{{ $categories->where('is_active', false)->count() }}
Hidden from filters
Type Scopes
{{ $categories->pluck('type')->unique()->count() }}
Entity categories
{{-- Filter Toolbar --}}
All Types @foreach(['temple', 'place', 'event', 'news', 'organization', 'other'] as $t) {{ ucfirst($t) }} @endforeach
{{-- Table Card --}}
@forelse($categories as $category) {{-- Category Name --}} {{-- Type --}} {{-- Status Pill --}} {{-- Actions --}} @empty @endforelse
Category Name Target Module Type Status Actions
{{ $category->name }}
{{ $category->description ? Str::limit($category->description, 60) : $category->slug }}
@php $typeBadgeStyles = [ 'temple' => 'bg-amber-50 text-amber-800 border-amber-200', 'place' => 'bg-blue-50 text-blue-800 border-blue-200', 'event' => 'bg-purple-50 text-purple-800 border-purple-200', 'news' => 'bg-emerald-50 text-emerald-800 border-emerald-200', 'organization' => 'bg-pink-50 text-pink-800 border-pink-200', 'other' => 'bg-slate-100 text-slate-700 border-slate-200', ]; @endphp {{ ucfirst($category->type) }} @if($category->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
No categories found in this filter.
{{-- Pagination --}} @if(method_exists($categories, 'hasPages') && $categories->hasPages())
{{ $categories->links() }}
@endif
@endsection