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

<f:for each="{
    0: 'houseAwardsGeneral',
    1: 'houseAwardsAral',
    2: 'houseAwardsDehoga',
    3: 'houseAwardsFine',
    4: 'houseAwardsMichelin',
    5: 'houseAwardsMillau',
    6: 'houseAwardsVarta'
}" as="awardType">
    <f:variable name="attributeCollection"
                value="{poi:collection.attributes.get(article: article, attributeName: awardType)}" />
    <f:if condition="{attributeCollection.hasContents}">
        <h4 class="sr-only">
            <vh:translate
                id="property.attribute.{awardType}"
                package="Newland.Toubiz.Poi.Neos"
                source="Models/Article" />
        </h4>

        <ul class="tb-gastro-awards">
            <f:for each="{attributeCollection}" as="award">
                <li class="tb-gastro-awards__item">
                    <img src="{f:uri.resource(path: 'Images/Awards/{awardType}_{award.value}.gif', package: 'Newland.Toubiz.Poi.Neos')}" alt="{award.label}" title="{award.description}">
                </li>
            </f:for>
        </ul>
    </f:if>
</f:for>
