@extends('admin.layouts.app') @section('title', 'Temples') @section('page-title', 'Temples') @section('content')

πŸ›• Temples

Temple records across sacred places β€” manage deities, darshan timings, traditions, and public verification.

☸️ Faith Traditions @userCan('temples.create') + Add New Temple @enduserCan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- ---- KPI Stats ---- --}}
πŸ›• {{ number_format($statusCounts['all'] ?? 0) }} All Temples βœ… {{ number_format($statusCounts['published'] ?? 0) }} Published πŸ“ {{ number_format($statusCounts['draft'] ?? 0) }} Drafts ⭐ {{ number_format($statusCounts['featured'] ?? 0) }} Featured πŸ“¦ {{ number_format($statusCounts['archived'] ?? 0) }} Archived
{{-- ---- Smart Search & Filter Toolbar ---- --}}
@if($q !== '') @endif @if($status !== 'all') @endif
{{-- ---- Floating Bulk Action Bar ---- --}}
temple(s) selected
{{-- ---- Universal Table ---- --}}
@forelse($temples as $temple) @php $rowNo = ($temples->currentPage() - 1) * $temples->perPage() + $loop->iteration; @endphp @empty @endforelse
# Image Temple Details Sacred Place Type Status Updated Actions
{{ $rowNo }} @if($temple->image) {{ $temple->name }} @else
πŸ›•
@endif
{{ $temple->name }} @if($temple->is_featured) ⭐ Featured @endif
@if($temple->deity)
πŸ•‰οΈ {{ $temple->deity }}
@endif /temples/{{ $temple->slug }}
@if($temple->place) πŸ“ {{ $temple->place->name }} @else β€” @endif {{ \App\Http\Controllers\Admin\TempleController::TEMPLE_TYPES[$temple->temple_type] ?? ucfirst($temple->temple_type ?: 'General') }} @if($temple->status === 'published') ● Published @elseif($temple->status === 'archived') Archived @else Draft @endif {{ $temple->updated_at->format('d M Y') }}
@if($temple->status === 'published' && $temple->is_active) πŸ‘οΈ @endif @userCan('temples.edit') ✏️
@csrf
@enduserCan @userCan('temples.delete')
@csrf @method('DELETE')
@enduserCan
πŸ›•

No temples found

Try adjusting your search filters or add a new temple record.

@userCan('temples.create') + Add First Temple @enduserCan
{{-- ---- Pagination ---- --}}
@if($temples->total() > 0) Showing {{ $temples->firstItem() }} to {{ $temples->lastItem() }} of {{ number_format($temples->total()) }} temples @else 0 temples @endif
@if($temples->hasPages())
{{ $temples->links() }}
@endif
@endsection