{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,
        2: article.flatAttributes.houseAwardsGeneral,
        3: article.flatAttributes.houseAwardsAral,
        4: article.flatAttributes.houseAwardsDehoga,
        5: article.flatAttributes.houseAwardsFine,
        6: article.flatAttributes.houseAwardsMichelin,
        7: article.flatAttributes.houseAwardsMillau,
        8: article.flatAttributes.houseAwardsVarta
    }">

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

        <table class="tb-table">
            <f:if condition="{article.flatAttributes.houseAwardsGeneral}
            || {article.flatAttributes.houseAwardsAral}
            || {article.flatAttributes.houseAwardsDehoga}
            || {article.flatAttributes.houseAwardsFine}
            || {article.flatAttributes.houseAwardsMichelin}
            || {article.flatAttributes.houseAwardsMillau}
            || {article.flatAttributes.houseAwardsVarta}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.houseAwards"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article" />

                    </th>
                    <td>
                        <vh:render partial="PointOfInterests/Show/Attributes/Gastronomy/Details/Awards"
                                   arguments="{article: article}" />
                    </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>
