{*
=========================================================
 HOME – rendu dynamique des blocs (drag & drop)
=========================================================
*}


{foreach from=$orderedBlocks item=block}

    {*
    =========================================
    SLIDER
    =========================================
    *}

    {if $block.type == 'slider_group'}

        {include
            file="module:lcvprestatheme/views/templates/hook/slider.tpl"
            slider=$block.slider
            slides=$block.slides
        }

    {elseif $block.type == 'category_group'}

        {include
            file="module:lcvprestatheme/views/templates/hook/category.tpl"
            group=$block.group
            categories=$block.categories
        }



    {elseif $block.type == 'product_group'}
        

        {if !empty($block.products)}
            {include
                file="module:lcvprestatheme/views/templates/hook/product.tpl"
                products=$block.products
                title = $block.item.title
            }
        {/if}
    {*
    =========================================
    MARQUES
    =========================================
    *}
    {elseif $block.type == 'brand'}

            {include
                file="module:lcvprestatheme/views/templates/hook/brand.tpl"
                brands=$block.brands
            }
      

    {*
    =========================================
    À PROPOS
    =========================================
    *}
    {elseif $block.type == 'about_group'}

       
            {include
                file="module:lcvprestatheme/views/templates/hook/about.tpl"
                group=$block.group
                about=$block.about
            }


    {elseif $block.type == 'reassurance_group'}
        {include
            file="module:lcvprestatheme/views/templates/hook/reassurance.tpl"
             group=$block.group
             reassurances=$block.reassurances
        }

    {/if}

{/foreach}