@php $isHome = ($page->slug ?? null) === '/'; $pageComponentIds = is_array($page->component_ids ?? null) ? $page->component_ids : []; @endphp
@csrf @method('PUT')
{{ __('Page Setup') }}

{{ __('Page Elements') }}

{{ __('Arrange selected components, update route metadata, and keep the page state in sync.') }}

@if (! $page->is_home)
is_breadcrumb) ? 'checked' : '' }}>
is_active) ? 'checked' : '' }}>
@endif
{{ __('Drop Component Here') }} {{ __('Arrange sections from top to bottom in the exact order this page should render.') }} @foreach($pageComponentIds as $id) @php $component = $components->firstWhere('id', $id); @endphp @if($component)
@include('backend.page_component.partials._component_icon', [ 'component' => $component, 'wrapperClass' => 'component-admin-thumb--compact', ])
{{ $component->component_name }} {{ __('Mapped to this page') }}
@unless($component->is_protected) @else {{ __('Protected') }} @endunless
@endif @endforeach

{{ __('Page Identity') }}

{{ __('Update the public title in each locale and keep the default locale connected to the slug when editable.') }}

@foreach($locales as $locale => $label)
getDefaultLocale() ? 'data-slug-target=#page_slug' : '' }} value="{{ old("page_title.$locale", $page->title[$locale] ?? '') }}" placeholder="{{ __('Enter page title for :lang', ['lang' => strtoupper($locale)]) }}">
@endforeach

{{ __('Route and Presentation') }}

{{ __('Adjust the route slug and breadcrumb presentation before saving this page update.') }}

is_protected ? 'readonly' : '' }} required >
@if(! $isHome)
@endif