{% extends "./layout/default" %}

{% block breadcrumbs %}
    {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
{% endblock %}

{% block content %}
    <form method="POST" action="{{ route('preferences.code.store') }}" accept-charset="UTF-8" class="form-horizontal" id="preferences.code">
        <input name="_token" type="hidden" value="{{ csrf_token() }}">
        <div class="row">
            <div class="col-lg-6 col-md-6 col-sm-6">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">{{ 'pref_two_factor_auth_code'|_ }}</h3>
                    </div>
                    <div class="box-body">
                        <p class="text-info">
                            {{ 'pref_two_factor_auth_code_help'|_ }}
                        </p>
                        <div class="form group">
                            <div class="col-sm-8 col-md-offset-4">
                                <img src="{{ image }}" alt="" title=""/>
                                <br/><br/>
                            </div>

                        </div>

                        {{ ExpandedForm.text('code', code) }}
                    </div>
                </div>
            </div>

        </div>
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12">
                <div class="form-group">
                    <div class="col-sm-12">
                        <button type="submit" class="btn btn-success btn-lg">{{ 'pref_save_settings'|_ }}</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- form close -->
    </form>
{% endblock %}
