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

<poi:collection.attributes.notAllEmpty
    arrays="{
        0: article.flatAttributes.information,
        1: article.flatAttributes.acceptedPayments,
        2: article.flatAttributes.forKids,
        3: article.flatAttributes.spokenLanguages,
        4: article.flatAttributes.priceSegment
    }"

    strings="{
        0: article.flatAttributes.thermalFamilyChildAgeMinimum,
        1: article.flatAttributes.thermalCamperQuantity,
        2: article.flatAttributes.accessibleText
    }"

    booleans="{
        0: article.flatAttributes.thermalHasHotel,
        1: article.flatAttributes.thermalIsFamilyFriendly,
        2: article.flatAttributes.accessibleIs90,
        3: article.flatAttributes.accessibleIs80,
        4: article.flatAttributes.accessibleIs70,
        5: article.flatAttributes.accessibleIs60,
        6: article.flatAttributes.accessibleIsForDeafs,
        7: article.flatAttributes.accessibleIsForBlinds,
        8: article.flatAttributes.accessibleIsForDisordes,
        9: article.flatAttributes.accessibleHasElevator,
        10: article.flatAttributes.accessibleHasWc,
        11: article.flatAttributes.accessibleWcPart
    }"

    integers="{
        0: article.flatAttributes.accessibleElevatorWidth,
        1: article.flatAttributes.accessibleWcWidth,
        2: article.flatAttributes.accessibleWcPartWidth
    }">

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

        <table class="tb-table">

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

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

            <poi:collection.attributes.notAllEmpty
                strings="{
                    0: article.flatAttributes.thermalCamperQuantity
                }"
                booleans="{
                    0: article.flatAttributes.thermalHasHotel
                }">

                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.residence"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

                    </th>
                    <td>
                        <ul>
                            <f:if condition="{article.flatAttributes.thermalCamperQuantity}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.thermalCamperQuantity"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>: {article.flatAttributes.thermalCamperQuantity}
                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.thermalHasHotel}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.thermalHasHotel"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                        </ul>
                    </td>
                </tr>
            </poi:collection.attributes.notAllEmpty>

            <poi:collection.attributes.notAllEmpty
                strings="{
                    0: article.flatAttributes.thermalFamilyChildAgeMinimum
                }"
                booleans="{
                    0: article.flatAttributes.thermalIsFamilyFriendly
                }">

                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.families"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

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

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.thermalFamilyChildAgeMinimum}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.thermalFamilyChildAgeMinimum"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>: {article.flatAttributes.thermalFamilyChildAgeMinimum}
                                </li>
                            </f:if>
                        </ul>
                    </td>
                </tr>
            </poi:collection.attributes.notAllEmpty>
            <f:if condition="{article.flatAttributes.groups.hasContents}">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.groups"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

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

                    </td>
                </tr>
            </f:if>


            <f:if condition="{article.flatAttributes.accessibleText}">
                <tr>
                    <vh:render
                        partial="PointOfInterests/Attribute"
                        arguments="{
                            type: 'text',
                            attribute: article.flatAttributes.accessibleText
                        }"/>

                </tr>
            </f:if>

            <poi:collection.attributes.notAllEmpty
                booleans="{
                    0: article.flatAttributes.accessibleIs90,
                    1: article.flatAttributes.accessibleIs80,
                    2: article.flatAttributes.accessibleIs70,
                    3: article.flatAttributes.accessibleIs60,
                    4: article.flatAttributes.accessibleIsForDeafs,
                    5: article.flatAttributes.accessibleIsForBlinds,
                    6: article.flatAttributes.accessibleIsForDisordes
                }">
                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.accessibilityStatus"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

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

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleIs80}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleIs80"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleIs70}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleIs70"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleIs60}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleIs60"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleIsForDeafs}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleIsForDeafs"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleIsForBlinds}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleIsForBlinds"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleIsForDisordes}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleIsForDisordes"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                        </ul>
                    </td>
                </tr>
            </poi:collection.attributes.notAllEmpty>
            <poi:collection.attributes.notAllEmpty
                booleans="{
                    0: article.flatAttributes.accessibleHasElevator,
                    1: article.flatAttributes.accessibleHasWc,
                    2: article.flatAttributes.accessibleHasWcPart

                }"
                integers="{
                    0: article.flatAttributes.accessibleElevatorWidth,
                    1: article.flatAttributes.accessibleWcWidth,
                    2: article.flatAttributes.accessibleWcPartWidth
                }">

                <tr>
                    <th>
                        <vh:translate
                            id="property.attribute.accessibility"
                            package="Newland.Toubiz.Poi.Neos"
                            source="Models/Article"/>

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

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleElevatorWidth}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleElevatorWidth"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>: {article.flatAttributes.accessibleElevatorWidth}
                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleHasWc}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleHasWc"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleWcWidth}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleWcWidth"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>: {article.flatAttributes.accessibleWcWidth}
                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleWcPartWidth}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleWcPartWidth"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>

                                </li>
                            </f:if>
                            <f:if condition="{article.flatAttributes.accessibleHasWcPart}">
                                <li>
                                    <vh:translate
                                        id="property.attribute.accessibleHasWcPart"
                                        package="Newland.Toubiz.Poi.Neos"
                                        source="Models/Article"/>: {article.flatAttributes.accessibleHasWcPart}
                                </li>
                            </f:if>
                        </ul>
                    </td>
                </tr>
            </poi:collection.attributes.notAllEmpty>

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

                    </th>
                    <td>
                        <vh:collection.implode glue=", " collection="{article.flatAttributes.acceptedPayments.data}" />
                    </td>
                </tr>
            </f:if>

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

                    </th>
                    <td>
                        <vh:collection.implode glue=", " collection="{article.flatAttributes.forKids.data}" />
                    </td>
                </tr>
            </f:if>

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

                    </th>
                    <td>
                        <vh:collection.implode glue=", " collection="{article.flatAttributes.spokenLanguages.data}" />
                    </td>
                </tr>
            </f:if>

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

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

        </table>
    </div>
</poi:collection.attributes.notAllEmpty>
