| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  | @extends('layouts.simple') | 
					
						
							| 
									
										
										
										
											2021-06-30 05:06:49 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @section('body') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="container very-small py-xl"> | 
					
						
							|  |  |  |         <div class="card content-wrap auto-height"> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:24:44 +08:00
										 |  |  |             <h1 class="list-heading">{{ trans('auth.mfa_gen_totp_title') }}</h1> | 
					
						
							|  |  |  |             <p>{{ trans('auth.mfa_gen_totp_desc') }}</p> | 
					
						
							|  |  |  |             <p>{{ trans('auth.mfa_gen_totp_scan') }}</p> | 
					
						
							| 
									
										
										
										
											2021-06-30 05:06:49 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |             <div class="text-center"> | 
					
						
							|  |  |  |                 <div class="block inline"> | 
					
						
							|  |  |  |                     {!! $svg !!} | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2021-09-02 03:58:19 +08:00
										 |  |  |                 <div class="code-base small text-muted px-s py-xs my-xs" style="overflow-x: scroll; white-space: nowrap;"> | 
					
						
							|  |  |  |                     {{ $url }} | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2021-06-30 05:06:49 +08:00
										 |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-08-08 21:24:44 +08:00
										 |  |  |             <h2 class="list-heading">{{ trans('auth.mfa_gen_totp_verify_setup') }}</h2> | 
					
						
							|  |  |  |             <p id="totp-verify-input-details" class="mb-s">{{ trans('auth.mfa_gen_totp_verify_setup_desc') }}</p> | 
					
						
							| 
									
										
										
										
											2021-08-03 05:02:25 +08:00
										 |  |  |             <form action="{{ url('/mfa/totp/confirm') }}" method="POST"> | 
					
						
							| 
									
										
										
										
											2021-06-30 05:06:49 +08:00
										 |  |  |                 {{ csrf_field() }} | 
					
						
							|  |  |  |                 <input type="text" | 
					
						
							|  |  |  |                        name="code" | 
					
						
							|  |  |  |                        aria-labelledby="totp-verify-input-details" | 
					
						
							| 
									
										
										
										
											2021-08-08 21:24:44 +08:00
										 |  |  |                        placeholder="{{ trans('auth.mfa_gen_totp_provide_code_here') }}" | 
					
						
							| 
									
										
										
										
											2021-06-30 05:06:49 +08:00
										 |  |  |                        class="input-fill-width {{ $errors->has('code') ? 'neg' : '' }}"> | 
					
						
							|  |  |  |                 @if($errors->has('code')) | 
					
						
							|  |  |  |                     <div class="text-neg text-small px-xs">{{ $errors->first('code') }}</div> | 
					
						
							|  |  |  |                 @endif | 
					
						
							|  |  |  |                 <div class="mt-s text-right"> | 
					
						
							| 
									
										
										
										
											2021-07-03 03:53:33 +08:00
										 |  |  |                     <a href="{{ url('/mfa/setup') }}" class="button outline">{{ trans('common.cancel') }}</a> | 
					
						
							| 
									
										
										
										
											2021-08-08 21:24:44 +08:00
										 |  |  |                     <button class="button">{{ trans('auth.mfa_gen_confirm_and_enable') }}</button> | 
					
						
							| 
									
										
										
										
											2021-06-30 05:06:49 +08:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |             </form> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @stop |