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

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.oil,
        1: article.flatAttributes.vegetables,
        2: article.flatAttributes.drinks,
        3: article.flatAttributes.meats,
        4: article.flatAttributes.fish,
        5: article.flatAttributes.milk,
        6: article.flatAttributes.cereals,
        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: 'text',
                                        attribute: article.flatAttributes.shopping
                                    }"/>

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

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

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

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

                        </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: 'text',
                                    name: 'drinks',
                                    attribute: article.flatAttributes.drinks
                                }"/>

                        </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: 'text',
                                    name: 'meats',
                                    attribute: article.flatAttributes.meats
                                }"/>

                        </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: 'text',
                                    name: 'fish',
                                    attribute: article.flatAttributes.fish
                                }"/>

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

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

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

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

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

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

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

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

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