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

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

{% block content %}
<form method="POST" action="{{ route('profile.mfa.backup-codes.post') }}" 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-lg-offset-3 col-md-12 col-sm-12 col-xs-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">{{ 'mfa_backup_codes_title'|_ }}</h3>
                    </div>
                    <div class="box-body">
                        <div class="form group">
                            <p>
                                {{ 'mfa_backup_codes_intro'|_ }}
                            </p>
                            <p class="text-danger">
                                {{ 'mfa_backup_codes_quick'|_ }}
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    <div class="row">
        <div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12 col-xs-12">
            <div class="box">
                <div class="box-body">
                    {{ ExpandedForm.password('password', {helpText: 'current_password_confirm_mfa'|_}) }}
                    {{ ExpandedForm.text('code', code) }}
                </div>
                <div class="box-footer">
                    <button type="submit" class="btn btn-success">{{ 'pref_save_settings'|_ }}</button>
                </div>
            </div>
        </div>
    </div>


</form>
{% endblock %}
