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

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

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

        <table class="tb-table tb-table--with-dividers">
            <f:if condition="{article.flatAttributes.services.hasContents}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.services.directMarketer"
                            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.awards -> vh:string.notEmpty()}">
                <tr>
                    <th>
                        <vh:translate
                                id="property.attribute.awards"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                    </th>
                    <td>
                        <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                type: 'text',
                                name: 'awards',
                                attribute: article.flatAttributes.awards
                            }"/>
                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.regionalAwards -> vh:string.notEmpty()}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.regionalAwards"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

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

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