Hello my brother, how are you?
I think I can help you with your suggestion regarding password visibility on the login page. I had already implemented it here before and I'll tell you what I did, come on!
On the login.blade.php page you will include some lines of code
Add the code below the <input> to the password form:
<span class="input-group-addon toggle-password" id="basic-addon3"><i class="fa fa-fw fa-eye-slash field-icon toggle-password"></i></span>
Ex:
<input class="form-control" id="password" type="password" name="password" required="" placeholder="Senha">
<span class="input-group-addon toggle-password" id="basic-addon3"><i class="fa fa-fw fa-eye-slash field-icon toggle-password"></i></span>
Also add some codes at the bottom of the page:
@push('footer-script')
<script>
$('body').on('click', '.toggle-password', function() {
var $selector = $(this).parent().find('input.form-control');
$(this).find('i').toggleClass("fa-eye fa-eye-slash");
var $type = $selector.attr("type") === "password" ? "text" : "password";
$selector.attr("type", $type);
});
</script>
@endpush
I have made several legal changes that people suggest, I will organize everything I can and post here in the community to try to be useful to others who are also looking for the changes that I already have ready.
I hope I can help you.
A big hug, success with your business.