{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="p-0">
        <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.overview.title', package: 'Newland.Toubiz.Poi.Neos', source: 'Views/Show')}
        </li>
        <poi:collection.attributes.notAllEmpty
            arrays="{
                0: article.flatAttributes.properties,
                1: article.flatAttributes.crossCountryTechnique
            }"
            strings="{
                0: article.description
            }"
            integers="{
                0: article.flatAttributes.conditionRating,
                1: article.flatAttributes.techniqueRating,
                2: article.flatAttributes.experienceRating,
                3: article.flatAttributes.landscapeRating
            }">

            <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>
        <poi:collection.attributes.notAllEmpty
            strings="{
                0: article.flatAttributes.startingPoint,
                1: article.flatAttributes.endingPoint,
                2: article.flatAttributes.publicTransit,
                3: article.flatAttributes.privateTransit,
                4: article.flatAttributes.parking,
                5: article.flatAttributes.tipOfAuthor,
                6: article.flatAttributes.safetyNote,
                7: article.flatAttributes.equipment,
                8: article.flatAttributes.literatureTipOfAuthor
            }">

            <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-travel"
                aria-expanded="false"
                aria-haspopup="true">

                {vh:translate(id: 'tabs.forTheTour.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="tourDetailTabHeader" context="{ article: article }"/>
    </ul>
</nav>

<vh:render partial="PointOfInterests/Show/Attributes/Tour/Overview" arguments="{_all}"/>
<vh:render partial="PointOfInterests/Show/Attributes/Tour/Details" arguments="{_all}"/>
<vh:render partial="PointOfInterests/Show/Attributes/Tour/Travel" arguments="{_all}"/>

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