{% if show_dummy_data == true %}
    {# Mock config values for Trustpilot integration #}
    {% set mock_config = {
        'trustpilot_api_business_id': '12345678901234567890',
        'trustpilot_api_template_id': '56789012345678901234',
        'trustpilot_url': 'https://uk.trustpilot.com/review/pharmacy.co.uk'
    } %}
{% endif %}

{% if (show_dummy_data == true) or (config('site.trustpilot_api_business_id') is not empty and config('site.trustpilot_api_template_id') is not empty) %}
    <!-- TrustBox widget - Micro Combo -->
    <div
            class="trustpilot-widget"
            data-locale="en-GB"
            data-template-id="{{ show_dummy_data == true ? mock_config.trustpilot_api_template_id : config('site.trustpilot_api_template_id') }}"
            data-businessunit-id="{{ show_dummy_data == true ? mock_config.trustpilot_api_business_id : config('site.trustpilot_api_business_id') }}"
            data-style-height="175px"
            data-style-width="100%"
            data-theme="light"
            data-text-color="#1D1D1D"
    >

        <a href="{{ show_dummy_data == true ? mock_config.trustpilot_url : config('site.trustpilot_url') }}" target="_blank" rel="noopener">Trustpilot</a>

    </div>
    <!-- End TrustBox widget -->
{% endif %}

