{{-- ✅ Don't extend layouts.app for hotspot editor --}} {{-- @extends('layouts.app') --}} {{-- @section('content') --}} Hotspot Editor — {{ $title }} {{-- Top bar --}}
📍 Hotspot Editor — {{ $mode === 'master' ? 'Master Plan' : 'Block' }}: {{ $title }}
← 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 = json_decode(file_get_contents($manifestPath), true); $mainJs = $manifest['files']['main.js'] ?? null; $mainCss = $manifest['files']['main.css'] ?? null; @endphp @if($mainCss) @endif @if($mainJs) @else
React build not found. Run npm run build
@endif