|
27 | 27 | </div> |
28 | 28 | <div class="input-group"> |
29 | 29 | <span class="input-group-text bg-light border-end-0"><i class="bi bi-shield-lock text-primary"></i></span> |
30 | | - {{-- Added id="password" --}} |
31 | 30 | <input type="password" id="password" name="password" class="form-control border-x-0 @error('password') is-invalid @enderror" placeholder="••••••••" required> |
32 | | - {{-- Toggle Button --}} |
33 | 31 | <button class="btn btn-outline-light border border-start-0 text-muted" type="button" id="togglePassword"> |
34 | 32 | <i class="bi bi-eye" id="eyeIcon"></i> |
35 | 33 | </button> |
|
42 | 40 | <label class="form-check-label small" for="remember">Remember this device</label> |
43 | 41 | </div> |
44 | 42 |
|
45 | | - <button type="submit" class="btn btn-primary w-100 py-2 shadow-sm"> |
| 43 | + <button type="submit" class="btn btn-primary w-100 py-2 shadow-sm mb-3"> |
46 | 44 | Access Dashboard <i class="bi bi-arrow-right-short ms-1"></i> |
47 | 45 | </button> |
48 | 46 | </form> |
49 | 47 |
|
| 48 | + {{-- ADDED SIGN UP OPTION HERE --}} |
| 49 | + <hr class="text-muted opacity-25 my-4"> |
| 50 | + |
| 51 | + <div class="text-center"> |
| 52 | + <p class="small text-muted mb-0">Don't have an account?</p> |
| 53 | + <a href="{{ route('register') }}" class="fw-bold text-decoration-none text-primary"> |
| 54 | + Create an Account <i class="bi bi-person-plus ms-1"></i> |
| 55 | + </a> |
| 56 | + </div> |
| 57 | + |
50 | 58 | {{-- Script to handle toggle --}} |
51 | 59 | <script> |
52 | 60 | const togglePassword = document.querySelector('#togglePassword'); |
53 | 61 | const password = document.querySelector('#password'); |
54 | 62 | const eyeIcon = document.querySelector('#eyeIcon'); |
55 | 63 |
|
56 | 64 | togglePassword.addEventListener('click', function (e) { |
57 | | - // toggle the type attribute |
58 | 65 | const type = password.getAttribute('type') === 'password' ? 'text' : 'password'; |
59 | 66 | password.setAttribute('type', type); |
60 | | - |
61 | | - // toggle the eye / eye slash icon |
62 | 67 | eyeIcon.classList.toggle('bi-eye'); |
63 | 68 | eyeIcon.classList.toggle('bi-eye-slash'); |
64 | 69 | }); |
|
0 commit comments