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

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.priceSegment,
        1: article.flatAttributes.kitchenStyle,
        2: article.flatAttributes.acceptedPayments,
        3: article.flatAttributes.spokenLanguages
    }">

    <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.priceSegment.hasContents}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.priceSegment"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

                            </span>
                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.kitchenStyle.hasContents}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.kitchenStyle"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

                            </span>
                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.habitsAndAllergies.hasContents}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.habitsAndAllergies"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

                            </span>
                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.ambiance.hasContents}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.ambiance"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

                            </span>
                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.acceptedPayments.hasContents}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.acceptedPayments"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

                            </span>
                        </td>
                    </tr>
                </f:if>
                <f:if condition="{article.flatAttributes.spokenLanguages.hasContents}">
                    <tr>
                        <th>
                            <vh:translate
                                id="property.attribute.spokenLanguages"
                                package="Newland.Toubiz.Poi.Neos"
                                source="Models/Article"/>

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

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