{{-- Shared 7-tab Place form (create + edit) — reference-image layout. ONE
wraps ALL tabs so switching tabs never loses data (spec §3, §12). Tabs: Basic Information | Content | Location | SEO & Keywords | Media Gallery | Social & Structured Data | Publishing --}} @php $isEdit = isset($place) && $place; $p = $isEdit ? $place : null; $formAct = $isEdit ? route('admin.places.update', $p) : route('admin.places.store'); $kwList = old('keywords', $p?->keywords ?? []); if (! is_array($kwList)) { $kwList = json_decode($kwList ?? '[]', true) ?: []; } $publicUrl = $p ? route('frontend.places.show', $p->slug) : null; @endphp
Dashboard / Places / {{ $isEdit ? 'Edit Place' : 'Create Place' }}

{{ $isEdit ? 'Edit Place – ' . $p->name : 'Create Place' }}

Fill the tabs below — everything is saved together when you press Save Place.

@if($isEdit) @if($p->status === 'published' && $p->is_active) View Public Page @else Preview (team only) @endif Content Editor @if($p->is_workspace) Manage Sections @endif @endif Cancel
@if($errors->any())
Please fix the following:
@endif {{-- Tabs (spec §3) --}}
@csrf @if($isEdit) @method('PUT') @endif {{-- ================= TAB 1 — BASIC INFORMATION ================= --}}

Basic Information

Add the main details of the place.

@php $defaultPlaceCatId = $p?->category_id ?? (\App\Models\Category::where('name', 'like', '%Sacred Place%')->first()?->id ?? \App\Models\Category::first()?->id ?? 510); $candidatePlaceCatId = old('category_id', $defaultPlaceCatId); $safePlaceCatId = \App\Models\Category::where('id', $candidatePlaceCatId)->exists() ? $candidatePlaceCatId : $defaultPlaceCatId; @endphp

Leave blank to auto-generate. Public URL: https://{{ parse_url(config('app.url'), PHP_URL_HOST) ?? 'dhamseva.org' }}/places/…

Quick Images

Cover & featured — manage full gallery in the Media tab.

@if($p?->image) Cover @else
@endif
@if($p?->featured_image) Featured @else
@endif

Recommended: cover 1920×1080 · featured 1200×800 (max 2 MB each).

{{-- ================= TAB 2 — CONTENT ================= --}}

Content

Write the complete article about the place. No need for separate sections — use headings inside the editor (Overview, Origin of the Name, History & Heritage, Religious Significance, Natural Heritage, Spiritual Connection…).

@include('admin.partials._rich_text', [ 'name' => 'content', 'label' => '', 'value' => old('content', $p?->content), ])

Headings, paragraphs, lists, links and images are supported. Structured visitor info (How to Reach, Best Time, Travel Tips, FAQs) stays in the Content Editor after saving.

YouTube/Vimeo link — blank = no button on the public page.

{{-- ================= TAB 3 — LOCATION (simplified: region-level only) ================= --}}

Location

Region-level geography only (city / district / state) — this module represents places such as cities, towns, villages and regions, not individual buildings or postal addresses. All fields are optional; fill only verified information.

Defaults to India — edit only if the place is outside India.

Exact street address, coordinates and PIN code are intentionally not collected here. If such data already exists for a place it stays stored and keeps powering the public page and structured data — it is simply not edited in this form.

{{-- ================= TAB 4 — SEO & KEYWORDS ================= --}}

SEO Settings

How this place appears in search results.

Accessibility + image search — describe the main photo.

{{-- Unlimited keyword chips (spec §7) --}}
No keywords yet — press Enter after typing to add one.

Unlimited admin-side tags to organize your content. Note: Google does not use the meta keywords tag for ranking — focus on titles, descriptions and content quality.

Advanced SEO Settings

Only for cross-syndication cases — normally leave blank (auto = this page). Breadcrumb + JSON-LD are automatic.

Google Search Preview

This is how it may appear in Google search results.

https://{{ parse_url(config('app.url'), PHP_URL_HOST) ?? 'dhamseva.org' }}/places/{{ $p?->slug ?? 'your-slug' }}
{{ old('seo_title', $p?->seo_title) ?: old('name', $p?->name) ?: 'Page title will appear here' }}
{{ old('seo_description', $p?->seo_description) ?: old('description', $p?->description) ?: 'Meta description will appear here...' }}
Approximate preview — Google may display a different title or snippet.
{{-- ================= TAB 5 — MEDIA GALLERY ================= --}}

Media Gallery

Cover, hero and additional photos — stored in the existing Media Library.

@if($p?->image)
Cover
@endif
@if($p?->featured_image)
Featured
@endif
@if($isEdit) @foreach($p->galleryMedia as $media) @endforeach @endif

Multiple photos supported. Used in the public Photo Gallery section (shown only when it has images).

{{-- ================= TAB 6 — SOCIAL & STRUCTURED DATA ================= --}}

Social Sharing

Shown when the page is shared on WhatsApp / Facebook / X.

@if($p?->og_image)
Social sharing

Current sharing image — choose a new file to replace it.

@else

No custom image yet — the featured image is used as fallback.

@endif

Structured Data (automatic)

Existing SEO system — no second schema is generated.

  • JSON-LD Place schema - generated from name, description, image and any stored location data (auto).
  • Open Graph + Twitter cards — from Meta Title / Description / Social Image.
  • Breadcrumb markup — Home / Places / {place} (auto).
  • Canonical URL — auto unless set in SEO → Advanced.

Everything here reuses the existing SEO implementation — fill the SEO & Keywords tab and it all updates automatically.

{{-- ================= TAB 7 — YATRI INFO (same storage as Content Editor) ================= --}}

Yatri Information

Practical guidance shown on the public place page. Saved to the same fields as the Content Editor.

@include('admin.partials._rich_text', ['name' => 'yatri_information', 'label' => '', 'value' => old('yatri_information', $p?->information?->yatri_information)])
@include('admin.partials._rich_text', ['name' => 'best_time', 'label' => '', 'value' => old('best_time', $p?->information?->best_time)])
@include('admin.partials._rich_text', ['name' => 'travel_tips', 'label' => '', 'value' => old('travel_tips', $p?->information?->travel_tips)])
@include('admin.partials._rich_text', ['name' => 'important_information', 'label' => '', 'value' => old('important_information', $p?->information?->important_information)])
{{-- ================= TAB 8 — EMERGENCY CONTACTS ================= --}}

Emergency Contacts

Place-specific numbers. Only verified + active contacts appear publicly. National helplines are added automatically.

@php $emgOld = old('contacts', $p?->emergencyContacts?->toArray() ?? []); @endphp @foreach($emgOld as $i => $c)
@endforeach
Manage Categories

Do not publish unverified numbers — keep status Pending until confirmed.

{{-- ================= TAB 7 — PUBLISHING ================= --}}

Publishing

Control how this place goes live.

Draft = hidden from the website; you can Preview it from the list.

Data-quality workflow (preserved from the existing system).

Active
Show this place on the website when published.
Featured
Show in featured lists on the homepage & Explore.

Only Published + Active places appear publicly. Archive from the listing hides it while keeping all data (soft delete → Trash restores anytime).

@if(auth()->user()->isSuper())

Workspace (Explore Places)

Dynamic structure for this place.

Create the dynamic structure for this place
When ticked, {{ count(config('place_sections.sections')) }} sections (Overview → Place Settings) are created automatically.
@endif
{{-- ================= STICKY FOOTER ================= --}}
Fields marked * are required. Switching tabs keeps everything you typed.
Cancel
{{-- Delete-from-gallery needs its own form (cannot nest) --}}