From 7d7448430dccc6333a9b1b8b1c67e791334481db Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Thu, 28 Mar 2024 19:04:29 +0530 Subject: [PATCH] add route to static urls --- resources/views/Admin/login/otp.blade.php | 552 +++++++++--------- resources/views/Admin/login/sign-in.blade.php | 240 ++++---- .../views/Frontend/menu-after-lg.blade.php | 2 +- 3 files changed, 411 insertions(+), 383 deletions(-) diff --git a/resources/views/Admin/login/otp.blade.php b/resources/views/Admin/login/otp.blade.php index 6f3efcf..799bff5 100644 --- a/resources/views/Admin/login/otp.blade.php +++ b/resources/views/Admin/login/otp.blade.php @@ -1,283 +1,303 @@ @extends('Admin.login.master') @section('content') - - + + - - - -
- -
- -
- -
- -
- -
- @csrf - -
- Logo -
- - -
- -

Mail Verification

- - -
Please enter the OTP sent to registered Mail ID
- -
- - -
- -
Type your 4 digit security code.
- - -
- - - - -
- -
-
OTP has been sent to your Mail ID. OTP valid for 02:00 Sec
- - -
+ + + + + +
+ Didn’t get the code ? + Resend OTP +
+ +
+ +
+ +
+ + +
+ + + +
+ +
+ +
+ @endsection + @section('scripts') + - @endsection \ No newline at end of file + // otp timer code + + var timerDuration = 120; + + var duration = 120; + + function startTimer() { + // var duration = 120; // Duration of the timer in seconds + + var timer = duration; + + $("#countdown-timer").text(formatTime(timer)); + + var intervalId = setInterval(function() { + timer--; + + $("#countdown-timer").text(formatTime(timer)); + + if (timer === 0) { + clearInterval(intervalId); + $('#resend_otp').removeClass("d-none"); + $("#resend-otp-link").prop("disabled", false); + } + }, 1000); + } + + function formatTime(seconds) { + var minutes = Math.floor(seconds / 60); + + var remainingSeconds = seconds % 60; + + return ( + minutes + ":" + (remainingSeconds < 10 ? "0" : "") + remainingSeconds + ); + } + + startTimer(); + + @endsection diff --git a/resources/views/Admin/login/sign-in.blade.php b/resources/views/Admin/login/sign-in.blade.php index 2f47d39..b19d939 100644 --- a/resources/views/Admin/login/sign-in.blade.php +++ b/resources/views/Admin/login/sign-in.blade.php @@ -1,119 +1,127 @@ @extends('Admin.login.master') @section('content') + -
-
-
-
-
-
-
- @csrf -
-

Log In

-
Welcome Back
-
-
- -
-
- -
- -
- -
- -
OTP has been send on your mail
-
-
-
-
-
- -
-
-
-
- - @endsection - @section('scripts') - - @endsection \ No newline at end of file +
+
+
+
+
+
+
+ @csrf +
+

Log In

+
Welcome Back
+
+
+ +
+
+ +
+ +
+ +
+ +
OTP has been send on your + mail
+
+
+
+
+
+ +
+
+
+
+ @endsection + @section('scripts') + + @endsection diff --git a/resources/views/Frontend/menu-after-lg.blade.php b/resources/views/Frontend/menu-after-lg.blade.php index 75d06ea..bd53ad8 100644 --- a/resources/views/Frontend/menu-after-lg.blade.php +++ b/resources/views/Frontend/menu-after-lg.blade.php @@ -10,7 +10,7 @@