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

🌊 Ghats

Sacred riverfront ghats and steps across Yamuna, Ganga, and holy water bodies.

@userCan('places.create') + Add Ghat @enduserCan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif {{-- ============ KPI CARDS ============ --}}
🌊
Total Ghats {{ 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($placeOptions) && $placeOptions->isNotEmpty()) @endif Reset
{{-- ============ FLOATING BULK BAR ============ --}}
Selected: ghats
@csrf
{{-- ============ TABLE ============ --}}
@forelse($ghats as $ghat) @php $rowNo = ($ghats->currentPage() - 1) * $ghats->perPage() + $loop->iteration; @endphp @empty @endforelse
# Ghat Name Sacred Place River / Water Body Ghat Type Status Updated Actions
{{ $rowNo }}
@if($ghat->image) @else
🌊
@endif
{{ $ghat->name }} @if($ghat->name_hi) ({{ $ghat->name_hi }}) @endif @if($ghat->is_featured) Featured @endif
/{{ $ghat->slug }}
{{ $ghat->place?->name ?? 'β€”' }} {{ $ghat->river ?: 'Holy River' }} {{ \App\Http\Controllers\Admin\GhatController::GHAT_TYPES[$ghat->ghat_type] ?? ucfirst($ghat->ghat_type ?? 'Ghat') }} @if($ghat->status === 'published' && $ghat->is_active) Published @elseif($ghat->status === 'archived') Archived @else Draft @endif {{ $ghat->updated_at?->diffForHumans() ?? 'β€”' }}
{{-- 1. Public Preview --}} πŸ‘οΈ {{-- 2. Edit --}} @userCan('places.edit') ✏️ @enduserCan {{-- 3. Quick Status Toggle --}} @userCan('places.edit')
@csrf
@enduserCan {{-- 4. Duplicate --}} @userCan('places.create')
@csrf
@enduserCan {{-- 5. Delete --}} @userCan('places.delete')
@csrf @method('DELETE')
@enduserCan
🌊

No Ghats Found

No ghat records match your current filter criteria.

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