@extends('backend.layouts.app') @section('title', __('Create Page')) @push('styles') @endpush @section('content') @php // Controller PageController::create passes $totalComponents, $totalLocales, // and $defaultLocale explicitly. The ?? fallbacks fire only if a stale // compiled view or a degraded controller forgets to send them, so the // hero degrades to "0 / 0 / EN" instead of throwing "Undefined variable". $totalComponents = $totalComponents ?? (isset($components) ? $components->count() : 0); $totalLocales = $totalLocales ?? (is_countable($locales ?? null) ? count($locales) : 0); $defaultLocale = $defaultLocale ?? strtoupper((string) app()->getDefaultLocale()); @endphp

{{ __('Create New Page') }}

{{ __('Build a page route and map components from one compact workspace.') }}

{{ $totalComponents ?? 0 }}{{ __('Components Ready') }} {{ $totalLocales ?? 0 }}{{ __('Locale Tabs') }} {{ $defaultLocale ?? strtoupper(app()->getDefaultLocale()) }}{{ __('Auto Slug Source') }}
{{ __('Build Status') }}

{{ __('Ready') }}

{{ __('Builder') }}

{{ __('Pick blocks, arrange them, and save the route.') }}

{{ __('Step 1') }} {{ __('Pick Blocks') }}
{{ __('Step 2') }} {{ __('Save Route') }}
@include('backend.page.partials._components_list')
@include('backend.page.partials._components_form')
@endsection @push('scripts') @include('backend.page.partials._component_script') @endpush