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

β›² Kunds & Sacred Sarovars

Holy water tanks, stepwells (baolis), and sacred kunds with lilas and historical importance.

@userCan('places.create') + Add Kund @enduserCan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif {{-- ============ KPI CARDS ============ --}}
β›²
Total Kunds {{ 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: kunds
@csrf
{{-- ============ TABLE ============ --}}
@forelse($kunds as $kund) @php $rowNo = ($kunds->currentPage() - 1) * $kunds->perPage() + $loop->iteration; @endphp @empty @endforelse
# Kund Name Sacred Place Kund Type Status Updated Actions
{{ $rowNo }}
@if($kund->image) @else
β›²
@endif
{{ $kund->name }} @if($kund->name_hi) ({{ $kund->name_hi }}) @endif @if($kund->is_featured) Featured @endif
/{{ $kund->slug }}
{{ $kund->place?->name ?? 'β€”' }} {{ \App\Http\Controllers\Admin\KundController::KUND_TYPES[$kund->kund_type] ?? ucfirst($kund->kund_type ?? 'Kund') }} @if($kund->status === 'published' && $kund->is_active) Published @elseif($kund->status === 'archived') Archived @else Draft @endif {{ $kund->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 Kunds Found

No kund records match your current filter criteria.

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