{{ header }}
<div class="container">
    <div class="row">{{ column_left }}
        {% if column_left and column_right %}
            {% set class = 'col-sm-6' %}
        {% elseif column_left or column_right %}
            {% set class = 'col-sm-9' %}
        {% else %}
            {% set class = 'col-sm-12' %}
        {% endif %}
        <div id="content" class="{{ class }}">{{ content_top }}
            <div class="paytr_body" style="padding-top: 20px;">
                {% if errors is defined %}
                    {% for err_message in errors %}
                    <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i>
                        {{ err_message }}
                    </div>
                    {% endfor %}
                {% else %}
                    <script src="https://www.paytr.com/js/iframeResizer.min.js"></script>
                    <iframe src="https://www.paytr.com/odeme/guvenli/{{ iframe_token }}" id="paytriframe"
                            frameborder="0"
                            scrolling="no" style="width: 100%;"></iframe>
                    <script type="text/javascript">
                        setInterval(function () {
                            iFrameResize({}, '#paytriframe');
                        }, 1000);
                    </script>
                {% endif %}
            </div>
            {{ content_bottom }}</div>
        {{ column_right }}</div>
</div>
{{ footer }}
