From 3cf8efda00f4e10b4032c3144011017544779f24 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Sat, 4 Oct 2025 21:51:32 +0800 Subject: [PATCH] added all changes for password box that can see eyes --- resources/views/auth/login.blade.php | 26 ++++++++- resources/views/auth/loginbackup.blade.php | 30 +++++++++- .../views/auth/passwords/confirm.blade.php | 28 +++++++++- .../views/auth/passwords/reset.blade.php | 43 ++++++++++++-- resources/views/auth/register.blade.php | 42 +++++++++++++- resources/views/auth/registerportal.blade.php | 42 +++++++++++++- resources/views/includes/profile.blade.php | 56 ++++++++++++++++++- resources/views/profile/edit.blade.php | 56 ++++++++++++++++++- 8 files changed, 303 insertions(+), 20 deletions(-) diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index d24e5a1..935cb2f 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -24,8 +24,20 @@ @endif
-
+
+ + + + + +
@if ($errors->has('password')) @@ -109,5 +121,17 @@ slides[slideIndex - 1].style.display = "block"; setTimeout(showSlides, 10000); // Change image every 2 seconds } + + function togglePasswordVisibility(inputId, iconId) { + const passwordInput = document.getElementById(inputId); + const eyeIcon = document.getElementById(iconId); + if (passwordInput.type === 'password') { + passwordInput.type = 'text'; + eyeIcon.setAttribute('fill', '#12B652'); + } else { + passwordInput.type = 'password'; + eyeIcon.setAttribute('fill', '#6c757d'); + } + } @endsection \ No newline at end of file diff --git a/resources/views/auth/loginbackup.blade.php b/resources/views/auth/loginbackup.blade.php index f0a0741..d9eaca5 100644 --- a/resources/views/auth/loginbackup.blade.php +++ b/resources/views/auth/loginbackup.blade.php @@ -45,11 +45,23 @@ @endif
-
+
- + + + + + + +
@if ($errors->has('password')) @@ -86,4 +98,18 @@
+ + @endsection diff --git a/resources/views/auth/passwords/confirm.blade.php b/resources/views/auth/passwords/confirm.blade.php index ca78fc1..5bfdb45 100644 --- a/resources/views/auth/passwords/confirm.blade.php +++ b/resources/views/auth/passwords/confirm.blade.php @@ -16,8 +16,20 @@
-
+
+ + + + + + @error('password') @@ -46,4 +58,18 @@
+ + @endsection diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php index cbcd2d2..f698af2 100644 --- a/resources/views/auth/passwords/reset.blade.php +++ b/resources/views/auth/passwords/reset.blade.php @@ -19,8 +19,20 @@ @endif -
+
+ + + + + +
@if ($errors->has('password')) @@ -31,11 +43,22 @@ {{ __('password strength') }}: none
-
+
- - +
+ + + + + +
@@ -68,6 +91,18 @@ } } } + + function togglePasswordVisibility(inputId, iconId) { + const passwordInput = document.getElementById(inputId); + const eyeIcon = document.getElementById(iconId); + if (passwordInput.type === 'password') { + passwordInput.type = 'text'; + eyeIcon.setAttribute('fill', '#12B652'); + } else { + passwordInput.type = 'password'; + eyeIcon.setAttribute('fill', '#6c757d'); + } + } @endsection \ No newline at end of file diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 46aabf6..eca32ae 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -45,11 +45,23 @@
-
+
+ + + + + +
@if ($errors->has('password')) @@ -58,11 +70,23 @@ @endif
-
+
- + + + + + + +
@@ -212,6 +236,18 @@ setTimeout(showSlides, 10000); // Change image every 2 seconds } + function togglePasswordVisibility(inputId, iconId) { + const passwordInput = document.getElementById(inputId); + const eyeIcon = document.getElementById(iconId); + if (passwordInput.type === 'password') { + passwordInput.type = 'text'; + eyeIcon.setAttribute('fill', '#12B652'); + } else { + passwordInput.type = 'password'; + eyeIcon.setAttribute('fill', '#6c757d'); + } + } + -
+
+ + + + + +
@if ($errors->has('password')) @@ -44,8 +56,20 @@
-
- +
+ + + + + + +
@@ -178,5 +202,17 @@ // slides[slideIndex - 1].style.display = "block"; // setTimeout(showSlides, 10000); // Change image every 2 seconds // } + + function togglePasswordVisibility(inputId, iconId) { + const passwordInput = document.getElementById(inputId); + const eyeIcon = document.getElementById(iconId); + if (passwordInput.type === 'password') { + passwordInput.type = 'text'; + eyeIcon.setAttribute('fill', '#12B652'); + } else { + passwordInput.type = 'password'; + eyeIcon.setAttribute('fill', '#6c757d'); + } + } @endsection \ No newline at end of file diff --git a/resources/views/includes/profile.blade.php b/resources/views/includes/profile.blade.php index a69a4cc..7cc4b68 100644 --- a/resources/views/includes/profile.blade.php +++ b/resources/views/includes/profile.blade.php @@ -117,9 +117,21 @@
-
+
+ + + + + + @if ($errors->has('old_password')) @@ -130,9 +142,21 @@
-
+
+ + + + + + @if ($errors->has('password')) @@ -140,9 +164,21 @@ @endif
-
+
+ + + + + +
@@ -171,4 +207,18 @@
+ + @endsection \ No newline at end of file diff --git a/resources/views/profile/edit.blade.php b/resources/views/profile/edit.blade.php index aa79c5c..5acb3af 100644 --- a/resources/views/profile/edit.blade.php +++ b/resources/views/profile/edit.blade.php @@ -98,9 +98,21 @@ @endif
-
+
+ + + + + + @if ($errors->has('old_password')) @@ -108,9 +120,21 @@ @endif
-
+
+ + + + + + @if ($errors->has('password')) @@ -118,9 +142,21 @@ @endif
-
+
+ + + + + +
@@ -137,4 +173,18 @@ {{-- @include('layouts.footers.auth') --}}
+ + @endsection \ No newline at end of file