2017-11-01 20:22:29 +01:00
|
|
|
@extends('header')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@parent
|
|
|
|
|
|
|
|
|
|
|
|
@if (Utils::isAdmin())
|
|
|
|
@include('accounts.nav', ['selected' => ACCOUNT_USER_DETAILS])
|
|
|
|
@endif
|
|
|
|
|
2017-11-02 09:43:36 +01:00
|
|
|
{!! Former::open() !!}
|
|
|
|
|
2017-11-01 20:22:29 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">{!! trans('texts.two_factor_setup') !!}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body form-padding-right">
|
|
|
|
<div class="text-center">
|
|
|
|
<img src="{{ $qrCode }}" alt="">
|
2017-11-02 09:43:36 +01:00
|
|
|
<p class="text-muted">{{ $secret }}</p><br/>
|
|
|
|
<p>{!! trans('texts.two_factor_setup_help', ['link' => link_to('https://github.com/antonioribeiro/google2fa#google-authenticator-apps', 'Google Authenticator', ['target' => '_blank'])]) !!}</p>
|
2017-11-01 20:22:29 +01:00
|
|
|
</div>
|
|
|
|
<p> </p>
|
2017-11-02 09:43:36 +01:00
|
|
|
<center class="buttons">
|
|
|
|
{!! Button::normal(trans('texts.cancel'))->large()->asLinkTo(url('settings/user_details'))->appendIcon(Icon::create('remove-circle')) !!}
|
|
|
|
{!! Button::success(trans('texts.enable'))->large()->submit()->appendIcon(Icon::create('lock')) !!}
|
2017-11-01 20:22:29 +01:00
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-11-02 09:43:36 +01:00
|
|
|
{!! Former::close() !!}
|
|
|
|
|
2017-11-01 20:22:29 +01:00
|
|
|
@stop
|