@php($blocks = $blocks ?? [])
@forelse($blocks as $block)
    @php($type = $block['type'] ?? null)
    @php($themeView = "clinicSite::themes.{$theme}.blocks.{$type}")
    @php($sharedView = "clinicSite::blocks.{$type}")
    @php($bv = $type ? (view()->exists($themeView) ? $themeView : (view()->exists($sharedView) ? $sharedView : null)) : null)
    @if($bv)
        @include($bv, ['d' => $block['data'] ?? []])
    @endif
@empty
    <section class="vs-section"><div class="vs-container" style="text-align:center;padding:80px 0;">
        <h2 class="vs-h2">This page has no content yet.</h2>
    </div></section>
@endforelse
