@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
{{ __('Build a page route and map components from one compact workspace.') }}
{{ __('Pick blocks, arrange them, and save the route.') }}