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

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.families,
        1: article.flatAttributes.groups
    }">

    <div
        id="target-enhancement-target-travel"
        class="tb-tab-navigation__target"
        data-target-enhancement-subject>

        <table class="tb-table">
            <f:if condition="{article.flatAttributes.families.hasContents}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.families"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'translationArray',
                                source: 'Models/Article',
                                path: 'property.attribute.families',
                                attribute: article.flatAttributes.families
                            }"/>

                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.groups.hasContents}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.groups"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'text',
                                attribute: article.flatAttributes.groups
                            }"/>

                    </td>
                </tr>
            </f:if>
        </table>
    </div>
</poi:collection.attributes.notAllEmpty>
