Files
sccs_laravel/resources/views/auth/two-factor-challenge.blade.php
2025-11-04 16:23:40 +05:00

122 lines
6.1 KiB
PHP

@extends('layouts/fullLayoutMaster')
@section('title', '2 Factor Chanllenge')
@section('page-style')
{{-- Page Css files --}}
<link rel="stylesheet" href="{{ asset(mix('css/base/pages/authentication.css')) }}">
@endsection
@section('content')
<div class="auth-wrapper auth-basic px-2">
<div class="auth-inner my-2">
<!-- Login basic -->
<div class="card mb-0">
<div class="card-body">
<a href="#" class="brand-logo">
<svg viewbox="0 0 139 95" version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" height="28">
<defs>
<lineargradient id="linearGradient-1" x1="100%" y1="10.5120544%" x2="50%" y2="89.4879456%">
<stop stop-color="#000000" offset="0%"></stop>
<stop stop-color="#FFFFFF" offset="100%"></stop>
</lineargradient>
<lineargradient id="linearGradient-2" x1="64.0437835%" y1="46.3276743%" x2="37.373316%" y2="100%">
<stop stop-color="#EEEEEE" stop-opacity="0" offset="0%"></stop>
<stop stop-color="#FFFFFF" offset="100%"></stop>
</lineargradient>
</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Artboard" transform="translate(-400.000000, -178.000000)">
<g id="Group" transform="translate(400.000000, 178.000000)">
<path class="text-primary" id="Path"
d="M-5.68434189e-14,2.84217094e-14 L39.1816085,2.84217094e-14 L69.3453773,32.2519224 L101.428699,2.84217094e-14 L138.784583,2.84217094e-14 L138.784199,29.8015838 C137.958931,37.3510206 135.784352,42.5567762 132.260463,45.4188507 C128.736573,48.2809251 112.33867,64.5239941 83.0667527,94.1480575 L56.2750821,94.1480575 L6.71554594,44.4188507 C2.46876683,39.9813776 0.345377275,35.1089553 0.345377275,29.8015838 C0.345377275,24.4942122 0.230251516,14.560351 -5.68434189e-14,2.84217094e-14 Z"
style="fill: currentColor"></path>
<path id="Path1"
d="M69.3453773,32.2519224 L101.428699,1.42108547e-14 L138.784583,1.42108547e-14 L138.784199,29.8015838 C137.958931,37.3510206 135.784352,42.5567762 132.260463,45.4188507 C128.736573,48.2809251 112.33867,64.5239941 83.0667527,94.1480575 L56.2750821,94.1480575 L32.8435758,70.5039241 L69.3453773,32.2519224 Z"
fill="url(#linearGradient-1)" opacity="0.2"></path>
<polygon id="Path-2" fill="#000000" opacity="0.049999997"
points="69.3922914 32.4202615 32.8435758 70.5039241 54.0490008 16.1851325">
</polygon>
<polygon id="Path-21" fill="#000000" opacity="0.099999994"
points="69.3922914 32.4202615 32.8435758 70.5039241 58.3683556 20.7402338">
</polygon>
<polygon id="Path-3" fill="url(#linearGradient-2)" opacity="0.099999994"
points="101.428699 0 83.0667527 94.1480575 130.378721 47.0740288"></polygon>
</g>
</g>
</g>
</svg>
<h2 class="brand-text text-primary ms-1">Vuexy</h2>
</a>
<div x-data="{ recovery: false }">
<div class="mb-1" x-show="! recovery">
{{ __('Please confirm access to your account by entering the authentication code provided by your authenticator application.') }}
</div>
<div class="mb-1" x-show="recovery">
{{ __('Please confirm access to your account by entering one of your emergency recovery codes.') }}
</div>
<x-jet-validation-errors class="mb-1" />
<form method="POST" action="{{ route('two-factor.login') }}">
@csrf
<div class="mb-1" x-show="! recovery">
<x-jet-label class="form-label" value="{{ __('Code') }}" />
<x-jet-input class="{{ $errors->has('code') ? 'is-invalid' : '' }}" type="text" inputmode="numeric"
name="code" autofocus x-ref="code" autocomplete="one-time-code" />
<x-jet-input-error for="code"></x-jet-input-error>
</div>
<div class="mb-1" x-show="recovery">
<x-jet-label class="form-label" value="{{ __('Recovery Code') }}" />
<x-jet-input class="{{ $errors->has('recovery_code') ? 'is-invalid' : '' }}" type="text"
name="recovery_code" x-ref="recovery_code" autocomplete="one-time-code" />
<x-jet-input-error for="recovery_code"></x-jet-input-error>
</div>
<div class="d-flex justify-content-end mt-2">
<button type="button" class="btn btn-outline-secondary me-1" x-show="! recovery"
x-on:click="recovery = true; $nextTick(() => { $refs.recovery_code.focus()})">{{ __('Use a recovery code') }}
</button>
<button type="button" class="btn btn-outline-secondary me-1" x-show="recovery"
x-on:click=" recovery = false; $nextTick(() => { $refs.code.focus() })">
{{ __('Use an authentication code') }}
</button>
<x-jet-button>
{{ __('Log in') }}
</x-jet-button>
</div>
</form>
</div>
<div class="divider my-2">
<div class="divider-text">or</div>
</div>
<div class="auth-footer-btn d-flex justify-content-center">
<a href="#" class="btn btn-facebook">
<i data-feather="facebook"></i>
</a>
<a href="#" class="btn btn-twitter white">
<i data-feather="twitter"></i>
</a>
<a href="#" class="btn btn-google">
<i data-feather="mail"></i>
</a>
<a href="#" class="btn btn-github">
<i data-feather="github"></i>
</a>
</div>
</div>
</div>
</div>
</div>
@endsection