File: /var/www/javago-portal-updates/resources/views/custom_auth/otp.blade.php
<x-app-layout>
<x-slot name="css">
<style>
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
-moz-appearance: textfield;
}
</style>
</x-slot>
<div class="form-container Cafelogin">
<div class="form-form">
<div class="form-form-wrap">
<div class="form-container">
<div class="form-content">
<h1 class="loginTitle">{{ __('auth.admin') }} {{ __('auth.OTPVerification') }}</h1>
{{-- <x-flash-message></x-flash-message> --}}
<form class="text-left" id="otp_verification_form" method="POST" action="{{ isset($url) ? $url : '' }}">
@csrf
<div class="form pt-3">
<div id="username-field" class="field-wrapper input">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="feather feather-user">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
<circle cx="12" cy="7" r="4"></circle>
</svg>
<input id="otp" name="otp" type="number" maxlength="6"
oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
class="form-control @error('otp') is-invalid @enderror"
placeholder="{{ __('auth.otp') }}">
@error('otp')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="d-sm-flex justify-content-between pb-3">
<div class="btnResenOtp">
<button type="button" class="btn btn-default"
value="" onclick="event.preventDefault();document.getElementById('resend_otp_form').submit();">
<svg class="mr-1" width="12" height="12" viewBox="0 0 16.292 16.292"><path id="refresh" d="M18.665,11.1a.627.627,0,0,0-.627.627c0,3.478-3.089,6.31-6.893,6.31s-6.893-2.832-6.893-6.31,3.089-6.31,6.893-6.31A7.175,7.175,0,0,1,16.478,7.75l-3.835-.815a.64.64,0,1,0-.257,1.253l5.339,1.078h.132a.633.633,0,0,0,.627-.614l.125-5.025a.627.627,0,1,0-1.253,0L17.281,6.76a8.491,8.491,0,0,0-6.135-2.594C6.653,4.166,3,7.555,3,11.729s3.653,7.563,8.146,7.563,8.146-3.4,8.146-7.563A.627.627,0,0,0,18.665,11.1Z" transform="translate(-3 -3)" fill="#6a442e"/></svg>
{{ __('auth.resendOTP') }}
</button>
</div>
<!-- <div class="field-wrapper">
<button type="submit" class="btn btn-primary"
value="">{{ __('auth.verifyOTPButton') }}</button>
</div> -->
</div>
</div>
<div class="field-wrapper loginBtnFullSize">
<button type="submit" class="btn-login text-uppercase w-100"
value="">{{ __('auth.verifyOTPButton') }}</button>
</div>
</form>
<form id="resend_otp_form" action="{{ $resendUrl }}" method="POST" style="display: none;">
@csrf
</form>
<!-- <p class="terms-conditions">{{ __('auth.rightsReserved') }}</p> -->
</div>
</div>
</div>
</div>
<div class="form-image">
<div class="l-image">
</div>
</div>
</div>
<x-slot name="script">
<script src="{{ asset('assets/js/libs/jquery.validate.min.js') }}"></script>
<script src="{{ asset('assets/js/libs/additional-methods.min.js') }}"></script>
<script>
const validation = {};
validation.email_required = "{{ __('validation.validation.email.required') }}";
validation.email_email = "{{ __('validation.validation.email.email') }}";
validation.email_customEmail = "{{ __('validation.validation.email.customEmail') }}";
</script>
<script src="{{ asset('assets/js/auth/otp.js') }}"></script>
</x-slot>
</x-app-layout>