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

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.commodities,
        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.commodities.hasContents}">
                <tr>
                    <th>
                        <vh:translate
                                id="property.attribute.commodities"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

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


        </table>
    </div>
</poi:collection.attributes.notAllEmpty>
