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

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.oils_and_spreads,
        1: article.flatAttributes.vegetables_and_fruits,
        2: article.flatAttributes.drinks,
        3: article.flatAttributes.meats,
        4: article.flatAttributes.fish,
        5: article.flatAttributes.milk,
        6: article.flatAttributes.grains,
        7: article.flatAttributes.crafts,
        8: article.flatAttributes.shopping,
        9: article.flatAttributes.seasonals
    }">

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

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

                        </th>
                        <td>
                            <span itemprop="shopping">
                                <vh:render
                                    partial="PointOfInterests/Attribute"
                                    arguments="{
                                        type: 'translationArray',
                                        attribute: article.flatAttributes.shopping,
                                        source: 'Models/Article',
                                        path: 'property.attribute.shopping.values'
                                    }"/>

                            </span>
                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.oils_and_spreads -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attributes.oils_and_spreads"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.oils_and_spreads,
                                    source: 'Models/Article',
                                    path: 'property.attributes.oils_and_spreads.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.vegetables_and_fruits -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attributes.vegetables_and_fruits"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.vegetables_and_fruits,
                                    source: 'Models/Article',
                                    path: 'property.attributes.vegetables_and_fruits.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.drinks -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.drinks"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.drinks,
                                    source: 'Models/Article',
                                    path: 'property.attribute.drinks.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.meats -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.meats"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    name: 'meats',
                                    attribute: article.flatAttributes.meats,
                                    source: 'Models/Article',
                                    path: 'property.attribute.meats.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.fish -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.fish"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.fish,
                                    source: 'Models/Article',
                                    path: 'property.attribute.fish.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.milk -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attributes.milk"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.milk,
                                    source: 'Models/Article',
                                    path: 'property.attributes.milk.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.grains -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attributes.grains"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.grains,
                                    source: 'Models/Article',
                                    path: 'property.attributes.grains.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.crafts -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attributes.crafts"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.crafts,
                                    source: 'Models/Article',
                                    path: 'property.attributes.crafts.values'
                                }"/>

                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.seasonals -> vh:string.notEmpty()}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attributes.seasonals"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

                        </th>
                        <td>
                            <vh:render
                                partial="PointOfInterests/Attribute"
                                arguments="{
                                    type: 'translationArray',
                                    attribute: article.flatAttributes.seasonals,
                                    source: 'Models/Article',
                                    path: 'property.attributes.seasonals.values'
                                }"/>

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