{#
 # @author    SWM
 # @copyright 2025 SWM
 # @license   https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 or later
 #}
<div class="tdbinpack-verification-result {{ isValid ? 'verified' : 'not-verified' }}">
    {% if isValid %}
        {% if context == 'api' %}
            <div class="notice notice-success inline">
                <p>
                    <span class="dashicons dashicons-yes-alt" style="color: #46b450; font-size: 20px; vertical-align: middle;"></span>
                    <strong>{{ trans('m3d.api.verify.success') }}</strong>
                </p>
            </div>
        {% endif %}
    {% else %}
        <div class="notice notice-error inline">
            {% if errors is not empty %}
                {% for error in errors %}
                    <p>
                        <span class="dashicons dashicons-warning" style="color: #dc3232; font-size: 20px; vertical-align: middle;"></span>
                        <strong>{{ error.level|upper }}: {{ error.message }}</strong>
                    </p>
                {% endfor %}
            {% else %}
                <p>{{ trans('m3d.api.verify.error_unknown') }}</p>
            {% endif %}
            
            {% if context == 'order' %}
                <p>
                    <a href="{{ settingsUrl }}">
                        {{ trans('m3d.api.verify.goto_settings') }}
                    </a>
                </p>
            {% endif %}
        </div>
    {% endif %}
</div>
