Preview Mode: {{ $themePage->title }} Theme: {{ $theme->name }}
@php // Load builder helpers require_once app_path('Helpers/builder_v2_helpers.php'); // Get builder data (theme pages use builder_data field) $builderData = $builderData ?? []; // Get ROOT node $rootNode = $builderData['ROOT'] ?? null; // Set default values for preview $currentWebsite = null; $currentWebsiteId = null; $currencySymbol = 'RM'; $websiteSubdomain = 'preview'; $themeFonts = ['heading' => 'Inter', 'body' => 'Inter']; @endphp @if($rootNode && isset($builderData)) @php // Render the root node // renderNode signature: ($nodeId, $nodes, $websiteId, $currencySymbol, $websiteSubdomain, $themeFonts) echo renderNode('ROOT', $builderData, $currentWebsiteId, $currencySymbol, $websiteSubdomain, $themeFonts); @endphp @else
Empty Page
This theme page doesn't have any content yet. Use the Builder V2 editor to add components.
@endif