{namespace poi=Newland\Toubiz\Poi\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace common=Newland\Toubiz\Common\Neos\ViewHelpers}

<nav class="tb-tab-navigation">
    <ul class="list-reset p-0">
        <poi:collection.attributes.notAllEmpty
            strings="{
                    0: article.flatAttributes.oils_and_spreads,
                    1: article.flatAttributes.vegetables_and_fruits,
                    2: article.flatAttributes.drinks,
                    3: article.flatAttributes.meats,
                    4: article.flatAttributes.fish,
                    5: article.flatAttributes.milk,
                    6: article.flatAttributes.grains,
                    7: article.flatAttributes.crafts,
                    8: article.flatAttributes.shopping,
                    9: article.flatAttributes.seasonals
            }">

            <li
                class="tb-tab-navigation__item"
                data-target-enhancement
                data-target-enhancement-plugins.0.name="toggle-aria-expanded"
                data-target-enhancement-exclusive-group="tb-tab-navigation-poi-detail"
                data-target-enhancement-targets.0="#target-enhancement-target-info"
                aria-expanded="true"
                aria-haspopup="true">

                {vh:translate(id: 'tabs.information.title', package: 'Newland.Toubiz.Poi.Neos', source: 'Views/Show')}
            </li>
        </poi:collection.attributes.notAllEmpty>
        <poi:collection.attributes.notAllEmpty
            arrays="{
                0: article.flatAttributes.services,
                1: article.flatAttributes.awards,
                2: article.flatAttributes.regionalAwards
            }">

            <li
                class="tb-tab-navigation__item"
                data-target-enhancement
                data-target-enhancement-plugins.0.name="toggle-aria-expanded"
                data-target-enhancement-exclusive-group="tb-tab-navigation-poi-detail"
                data-target-enhancement-targets.0="#target-enhancement-target-details"
                aria-expanded="false"
                aria-haspopup="true">

                {vh:translate(id: 'tabs.details.title', package: 'Newland.Toubiz.Poi.Neos', source: 'Views/Show')}
            </li>
        </poi:collection.attributes.notAllEmpty>

        <common:slot.render slot="detailTabHeader" context="{ article: article }"/>
        <common:slot.render slot="directMarketerDetailTabHeader" context="{ article: article }"/>
    </ul>
</nav>
<vh:render partial="PointOfInterests/Show/Attributes/DirectMarketer/Information" arguments="{_all}"/>
<vh:render partial="PointOfInterests/Show/Attributes/DirectMarketer/Details" arguments="{_all}"/>

<common:slot.render slot="detailTabBody" context="{ article: article }" />
<common:slot.render slot="directMarketerDetailTabBody" context="{ article: article }" />
