{{-- โœ… Don't extend layouts.app for hotspot editor --}} {{-- @extends('layouts.app') --}} {{-- @section('content') --}} Hotspot Editor โ€” {{ $title }} {{-- Top bar --}}
๐Ÿ“ Hotspot Editor โ€” {{ $mode === 'master' ? 'Master Plan' : ($mode === 'block' ? 'Block' : 'Unit') }}: {{ $title }} @if(isset($tenantSlug)) ยท {{ $tenantSlug }} @endif
@if(isset($tenantSlug)) {{ $tenantSlug }} @endif โ† Back
{{-- React mounts here โ€” full height minus top bar --}}
{{-- Config for React --}} {{-- Load React build --}} @php $manifestPath = public_path('hotspot-editor/build/asset-manifest.json'); $manifest = []; $mainJs = null; $mainCss = null; if (file_exists($manifestPath)) { $manifest = json_decode(file_get_contents($manifestPath), true); $mainJs = $manifest['files']['main.js'] ?? null; $mainCss = $manifest['files']['main.css'] ?? null; } // Fallback to direct build files if manifest not found if (!$mainJs && file_exists(public_path('hotspot-editor/build/static/js/main.js'))) { $mainJs = '/static/js/main.js'; } if (!$mainCss && file_exists(public_path('hotspot-editor/build/static/css/main.css'))) { $mainCss = '/static/css/main.css'; } @endphp @if($mainCss) @else {{-- Try alternate path --}} @if(file_exists(public_path('hotspot-editor/build/static/css/main.css'))) @endif @endif @if($mainJs) @else {{-- Try alternate path --}} @if(file_exists(public_path('hotspot-editor/build/static/js/main.js'))) @else
โš ๏ธ

React Build Not Found

Run npm run build in the hotspot-editor directory

โ† Go Back
@endif @endif