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

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

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

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

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

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

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

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