@props(['blocks' => []]) {{-- Single dispatcher shared by public rendering and the admin preview pane, so a block can never look different in preview than it does on the live site. --}} @foreach($blocks as $block) @php $type = $block['type'] ?? null; $data = $block['data'] ?? []; @endphp @if($type && view()->exists("tenant.site.blocks.{$type}")) @include("tenant.site.blocks.{$type}", ['data' => $data]) @endif @endforeach