@extends('admin.layouts.app') @section('title', 'Faith Traditions & Adaptive Labels') @section('content')
{{-- ============ A. HEADER ============ --}}
← Dashboard /Temples /Faith Traditions & Adaptive Labels

Faith Traditions & Adaptive Labels

Configure dynamic taxonomy and terminology labels for Mandirs, Gurudwaras, Monasteries, Derasars, Churches & Dargahs

{{-- Flash messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- ============ B. KPI CARDS (Real counts, Click = Filter) ============ --}}
@php $kpis = [ 'all' => ['cls' => 'ebpv-kpi-total', 'icon' => 'fa-solid fa-dharmachakra', 'label' => 'Total Traditions', 'sub' => 'All configured faiths', 'val' => $statusCounts['all'] ?? 0], 'active' => ['cls' => 'ebpv-kpi-pub', 'icon' => 'fa-solid fa-circle-check', 'label' => 'Active Traditions', 'sub' => 'Live in temple selectors', 'val' => $statusCounts['active'] ?? 0], 'inactive' => ['cls' => 'ebpv-kpi-arch', 'icon' => 'fa-solid fa-circle-pause', 'label' => 'Inactive / Paused', 'sub' => 'Hidden from selectors', 'val' => $statusCounts['inactive'] ?? 0], 'shrines' => ['cls' => 'ebpv-kpi-draft', 'icon' => 'fa-solid fa-gopuram', 'label' => 'Linked Shrines', 'sub' => 'Temples using this taxonomy', 'val' => $statusCounts['shrines'] ?? 0], ]; @endphp @foreach($kpis as $key => $kpi)
{{ $kpi['label'] }}
{{ number_format($kpi['val']) }}
{{ $kpi['sub'] }}
@endforeach
{{-- ============ C. SEARCH & FILTERS TOOLBAR ============ --}}
@if(($q ?? '') !== '' || ($status ?? 'all') !== 'all') Reset @endif
Showing {{ $faithCategories->count() }} traditions
{{-- ============ D. TABLE LISTING (Identical layout to Places Management) ============ --}}
@forelse($faithCategories as $fc) @php $rawIcon = trim($fc->icon ?? ''); $isFa = Str::contains($rawIcon, 'fa-'); $linkedCount = $fc->places_count + $fc->place_entities_count; @endphp {{-- Hidden template for modal inspection --}} @empty @endforelse
# Icon Tradition / Faith Name URL Slug Adaptive Terminology (Preview) Linked Shrines Status Actions
{{ $loop->iteration }}
@if($isFa) @else {{ $rawIcon ?: '☸️' }} @endif
{{ $fc->name }}
{{ $fc->getLabel('sacred_place_type', 'Sacred Shrine') }}
/{{ $fc->slug }}
{{ $fc->getLabel('visiting_hours') }} {{ $fc->getLabel('community_kitchen') }}
{{ $linkedCount }} {{ Str::plural('Shrine', $linkedCount) }} @if($fc->is_active) Active @else Inactive @endif
@if($linkedCount === 0)
@csrf @method('DELETE')
@else @endif

No Faith Traditions Found

Try adjusting your search or status filter, or click "Add New Faith Tradition" above.

Showing {{ $faithCategories->count() }} faith taxonomy records
Roadmap Section 7 • Multi-Faith Adaptive Engine
{{-- ============ E. ADAPTIVE TAXONOMY GUIDE NOTE ============ --}}
Adaptive Multi-Faith Architecture (Roadmap Section 7) When a visitor navigates to any sacred shrine, the frontend detail template dynamically switches its headings based on the shrine's assigned faith category. For instance, Gurudwaras display "Darbar Sahib Timings" and "Guru Ka Langar Details", while Mandirs display "Darshan Timings" and "Bhandara & Mahaprasad".
{{-- Dynamic Modal for viewing all adaptive labels --}}

Complete adaptive terminology dictionary rendered for this faith across the website:

Presiding Sacred Entity (primary_dedication)
Sampradaya & Lineage (tradition_lineage)
Visiting Hours (visiting_hours)
Daily Rituals & Prayers (daily_rituals)
Community Kitchen / Meals (community_kitchen)
Sacred Place Type (sacred_place_type)
Plural Category Title (sacred_places_title)
Festivals & Calendar (festival_calendar)
Edit This Faith's Labels
@endsection