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

<poi:collection.attributes.notAllEmpty
    strings="{
        0: article.flatAttributes.startingPoint,
        1: article.flatAttributes.publicTransit,
        2: article.flatAttributes.privateTransit,
        3: article.flatAttributes.parking
    }">

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

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

                    </th>
                    <td>
                        <f:render
                            partial="PointOfInterests/Attribute"
                            arguments="{
                                type: 'text',
                                name: 'startingPoint',
                                attribute: article.flatAttributes.startingPoint
                            }"/>
                    </td>
                </tr>
            </f:if>
            <f:if condition="{article.flatAttributes.publicTransit -> vh:string.notEmpty(ignoreEmptyTags:true)}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.publicTransit"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

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

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

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

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

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

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