{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
        1: article.flatAttributes.houseAwards
    }">

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

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

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

                    </td>
                </tr>
            </f:if>
            <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>
                        <vh: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>
                        <vh:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'text',
                                attribute: article.flatAttributes.capacity
                            }"/>

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