{#  Dynamic elements for Feefo / Google ratings #}
<div itemscope itemtype="http://schema.org/Organization">

    {% if organisation is not empty %}
        {% for field, value in organisation %}

            <meta itemprop="{{ field }}" content="{{ value }}" />
        {% endfor %}
    {% endif %}

    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">

        {% if address is not empty %}
            {% for field, value in address %}
                {% if field == 'addressLocality2' %}
                    {% set field = 'addressLocality' %}
                {% endif %}

                <meta itemprop="{{ field }}" content="{{ value }}" />
            {% endfor %}
        {% endif %}

    </div>

    {% if feefo_ratings is not empty %}

        {# Aggregate Rating Schema goes here, dynamic elements added by Feefo #}
        <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">

            {% for field, value in feefo_ratings %}
                <meta itemprop="{{ field }}" content="{{ value }}" />
            {% endfor %}

        </div>

    {% endif %}

</div>
