<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="pragma" content="no-cache" />
    <title>{{ config('backoffice.title') }}</title>
    <!-- FAVICON -->
    <link href="{{ path_asset('backoffice.favicon') }}" rel="shortcut icon">
    <!-- CSS -->
    <link href="{{ path_asset('path.backoffice.css_path') }}/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" >
    <link href="{{ path_asset('path.backoffice.css_path') }}/style.css" rel="stylesheet" type="text/css" media="screen" >
</head>
<body>
<div id="login" class="container">
    <img src="{{ path_asset('path.backoffice.images_path') }}/logo.png" alt="logo" class="logo" />
    <div id="login_box">
        <div id="login_wrapper">
            @error('code')
                <p class="message login-error-message">
                    {{ $message }}
                </p>
            @enderror
            <p>{{ trans('auth.two_factor_enter_code') }}</p>
            <div class="clear"></div>
            {!! Form::open(['route' => 'admin.two_factor.verify', 'id' => 'two_factor_form']) !!}
            <div class="form-group @error('code') has-error @enderror">
                <label class="control-label" for="code">{{ __('Verification Code') }}</label>
                {!! Form::text('code', null, [
                    'id' => 'code',
                    'class' => 'form-control login_input input',
                    'maxlength' => '6',
                ]) !!}
            </div>
            <div class="clear"></div>
            <div class="form-group">
                {!! Form::checkbox('trust_device', 1, null, ['id' => 'trust_device']) !!}
                <label class="control-label" for="trust_device">
                    {{ trans('auth.two_factor_trust_device', ['days' => config('auth.two_factor_remember_days', 60)]) }}
                </label>
            </div>
            <div class="clear"></div>
            <div class="fright">
                {!! Form::submit(__('Verify'), ['class' => 'btn btn-primary btn-block', 'id' => 'verify_btn']) !!}
            </div>
            <div class="clear"></div>
            {!! Form::close() !!}
        </div><!-- END login_wrapper -->
    </div>
    <!-- END login_box -->
    <div class="powered-wrapper">
        <a href="http://www.eae.pt" class="powered">
            <img src="{{ path_asset('path.backoffice.images_path') }}/tailored_by_eae.jpg" alt="powered_by_EAE" class="fright" />
        </a>
    </div>
</div>
</body>
</html>
