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

πŸ“ Places Management

Master directory of sacred cities, dham hubs, and heritage regions across Braj and global locations.

@userCan('places.create') + Add Place @enduserCan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif {{-- ============ KPI CARDS ============ --}}
πŸ“
Total Places {{ number_format($statusCounts['all'] ?? 0) }}
🟒
Published {{ number_format($statusCounts['published'] ?? 0) }}
πŸ“
Drafts {{ number_format($statusCounts['draft'] ?? 0) }}
⭐
Featured {{ number_format($statusCounts['featured'] ?? 0) }}
πŸ“¦
Archived {{ number_format($statusCounts['archived'] ?? 0) }}
{{-- ============ ALPINE ROOT & BULK MANAGER ============ --}}
{{-- ============ TOOLBAR ============ --}}
@if(isset($regions) && $regions->isNotEmpty()) @endif @if(isset($typeOptions) && $typeOptions->isNotEmpty()) @endif Reset
{{-- ============ FLOATING BULK BAR ============ --}}
Selected: places
@csrf
{{-- ============ TABLE ============ --}}
@forelse($places as $place) @php $rowNo = ($places->currentPage() - 1) * $places->perPage() + $loop->iteration; @endphp @empty @endforelse
# Place Name Category Region / District Status Sections Updated Actions
{{ $rowNo }}
@if($place->image) @else
πŸ“
@endif
{{ $place->name }} @if($place->name_hi) ({{ $place->name_hi }}) @endif @if($place->is_workspace) Workspace @endif @if($place->is_featured) Featured @endif
/{{ $place->slug }}
{{ $place->category->name ?? 'Sacred Place' }} {{ $place->district ?: ($place->city ?: ($place->state ?: 'β€”')) }} @if($place->status === 'published' && $place->is_active) Published @elseif($place->status === 'archived') Archived @else Draft @endif {{ $place->sections_on ?? 0 }}/{{ $totalSections ?? 21 }} ON {{ $place->updated_at?->diffForHumans() ?? 'β€”' }}
{{-- 1. Public Preview --}} πŸ‘οΈ {{-- 2. Structured Content Editor --}} @userCan('places.edit') πŸ“ @enduserCan {{-- 3. Edit Form --}} @userCan('places.edit') ✏️ @enduserCan {{-- 4. Quick Status Toggle --}} @userCan('places.edit')
@csrf
@enduserCan {{-- 5. Duplicate Place --}} @userCan('places.create')
@csrf
@enduserCan {{-- 6. Delete / Trash --}} @userCan('places.delete')
@csrf @method('DELETE')
@enduserCan
πŸ“

No Places Found

No place records match your current filter criteria.

@userCan('places.create') + Add First Place @enduserCan
{{-- ============ PAGINATION ============ --}}
Showing {{ $places->firstItem() ?? 0 }} to {{ $places->lastItem() ?? 0 }} of {{ $places->total() }} places
{{ $places->links() }}
@endsection