@extends(template_view_path("layouts.master"))

@section('content')

    {{-- Hero o portada --}}
    @includeIf(template_view_path("components.hero"), ['content' => $content])

    {{-- Bloques de contenido dinámico desde BD --}}
    @foreach($contentBlocks as $block)
        @includeIf("website::blocks.{$block->type}", ['block' => $block])
    @endforeach

    {{-- Footer --}}
    @includeIf(template_view_path("components.footer"))

@endsection
