@extends('admin.layouts.app') @section('title', 'Content — ' . $place->name) @section('content')
@php $backUrl = $place->is_workspace ? route('admin.explore-braj.workspace', $place) : route('admin.places.index'); @endphp
← Back to {{ $place->is_workspace ? $place->name : 'Places' }}

Content — {{ $place->name }}

The place's structured information (spec §6) — each section appears on the public page only when it has data (empty = hidden). Change the basic fields (name/type/location/status) in the Edit form.

@if($place->status === 'published' && $place->is_active) View Public → @endif
@if($errors->any())
@endif @if(session('success'))
{{ session('success') }}
@endif
@csrf @method('PUT') @php $contentValue = function (string $field) use ($place, $information) { // REUSE: history/how_to_reach = places columns; rest = place_information return in_array($field, ['history', 'how_to_reach'], true) ? $place->{$field} : $information->{$field}; }; @endphp @foreach($contentFields as $field => $cf) {{-- {{ $cf['label']}} — section card (order from config = single source for both editor and public) --}}

{{ $cf['label'] }}

@include('admin.partials._rich_text', [ 'name' => $field, 'label' => false, 'value' => $contentValue($field), ]) @if(in_array($field, ['history', 'how_to_reach'], true))

Stored in the places table (existing column — not duplicated).

@endif
@endforeach
@endsection