<form method="post" style="margin: 15px;">
<h1>Enabled Gatewayes</h1>
    {% for gateway in files %}
    <div>
        <input {% if gateway in selected  %} checked {% endif %} name='gateways[]' value="{{ gateway|escape('html_attr') }}" type='checkbox' id='{{ gateway|escape('html_attr') }}'>
        <label  for='{{gateway|escape('html_attr')}}'>{{gateway|escape('html')}}</label>
    </div>
    {% endfor %}

    <?php wp_nonce_field( 'hyperpay-options'); ?>

    <input style="margin-top: 10px;" type="submit">
</form>