@extends('admin.layouts.app') @section('title', 'Manage Place — '.$place->name) @section('content') @php $totalSections = count(config('place_sections.sections')); @endphp
{{-- Header --}}
← Explore Places / Places / {{ $place->name }} / Manage Place
{{ $place->name }} PLACE @if($place->is_active) ● Live on website @else ● Hidden from website @endif
{{ $place->city ?? '-' }} · {{ $place->category->name ?? '—' }} · {{ $activeCount }}/{{ $totalSections }} sections ON
{{ $activeCount }}/{{ $totalSections }}
Sections ON
{{ $place->is_active ? 'LIVE' : 'HIDDEN' }}
Website
@if(session('success'))
{{ session('success') }}
@endif
{{-- ===== LEFT: inner menu (21 sections) ===== --}} {{-- ===== RIGHT: selected section panel ===== --}}
{{ $meta['label'] ?? $current->section_key }} @php $badges = [ 'single' => ['Content', '#F2B622', 'rgba(242,182,34,.07)', 'rgba(242,182,34,.25)'], 'records' => ['Records', '#60a5fa', 'rgba(59,130,246,.07)', 'rgba(59,130,246,.25)'], 'media' => ['Media', '#f472b6', 'rgba(236,72,153,.07)', 'rgba(236,72,153,.25)'], 'relation' => ['Relation', '#34d399', 'rgba(52,211,153,.07)', 'rgba(52,211,153,.25)'], 'settings' => ['Settings', '#a78bfa', 'rgba(167,139,250,.07)', 'rgba(167,139,250,.25)'], ]; $type = $meta['type'] ?? 'single'; $badge = $badges[$type] ?? $badges['single']; @endphp {{ $badge[0] }}
@csrf
is_active ? 'checked' : '' }}>
{{ $meta['desc'] ?? '' }}
section: {{ $current->section_key }} · place: {{ $place->slug }}
@if(session('success'))
{{ session('success') }}
@endif @if($entityType) {{-- STEP-2: entity list panel (spec §9 — Add / Edit / Publish / Active all here) --}}
{{ $entities->count() }} {{ $entityMeta['label'] }} — only for {{ $place->name }} (place_id = {{ $place->id }}, FK enforced)
Add {{ $entityMeta['singular'] }}
@if($entities->isEmpty())
No {{ $entityMeta['singular'] }} yet
"Add {{ $entityMeta['singular'] }}" creates the first record — as soon as you publish + activate, the {{ $entityMeta['label'] }} section appears on the public place page. Empty sections stay hidden on the frontend; only this place's ({{ $place->name }}) data shows here.
@else
@foreach($entities as $entity) @endforeach
Name Short Description Sort Status Verification Updated Actions
@if($entity->image) @endif
{{ $entity->name }} @if($entity->is_featured) Featured @endif
/{{ $place->slug }}/{{ $entityMeta['path'] }}/{{ $entity->slug }}
{{ $entity->short_description ? \Illuminate\Support\Str::limit($entity->short_description, 55) : '—' }} {{ $entity->sort_order }} {{ $entity->status === 'published' ? 'Published' : 'Draft' }} {{ ucfirst($entity->verification_status) }} {{ $entity->updated_at->format('d M Y') }}
@csrf
@csrf
@csrf @method('DELETE')
@endif @else {{-- Framework shell placeholder — fields built one step at a time with approval --}}
Structure ready — content editor is coming
This section's editor — exact fields, buttons, status and frontend display — will be built in upcoming steps: one section at a time, with your approval. The toggle above is already live: switching it OFF hides this section on the frontend. Team isolation is also on — only your team's places are visible/publishable.
@endif
{{-- Contract note --}}
One structure, every Place ({{ $totalSections }} sections): Vrindavan, Barsana, Gokul, Govardhan, Mathura… or any new place within 84 Kos — the same menu everywhere, no separate manual pages. Contract: Place → Team → User → Role → Permission → Content — team isolation enforced (403 + place scope).
@endsection