reset.blade.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @extends('auth.layout')
  2. @section('content')
  3. <div id="passwordReset" class="container-fluid">
  4. <header>
  5. <a href="/" type="text/html" rel="noreferrer" referrerpolicy="no-referrer">
  6. {{ strtoupper(config('app.name')) }}
  7. </a>
  8. </header>
  9. <main>
  10. <h5>{{ __('Reset Password') }}</h5>
  11. <form name="f_password_reset" id="fPasswordReset" method="post" action="{{ route('password.update') }}" accept-charset="UTF-8">
  12. @csrf
  13. <input type="hidden" name="token" value="{{ $token }}"/>
  14. <div class="mb-3">
  15. <label for="email" class="form-label">{{ __('Email Address') }}</label>
  16. <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" readonly/>
  17. @error('email')
  18. <span class="invalid-feedback" role="alert">
  19. <strong>{{ $message }}</strong>
  20. </span>
  21. @enderror
  22. </div>
  23. <div class="mb-3">
  24. <label for="password" class="form-label">{{ __('Password') }}</label>
  25. <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password"/>
  26. @error('password')
  27. <span class="invalid-feedback" role="alert">
  28. <strong>{{ $message }}</strong>
  29. </span>
  30. @enderror
  31. </div>
  32. <div class="mb-3">
  33. <label for="password-confirm" class="form-label">{{ __('Confirm Password') }}</label>
  34. <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password"/>
  35. </div>
  36. <div class="mb-3">
  37. <button type="submit" class="btn btn-success w-100">
  38. {{ __('Reset Password') }}
  39. </button>
  40. </div>
  41. <div class="mb-3 text-center">
  42. @if (Route::has('login'))
  43. <a href="{{ route('login') }}">≪ {{ __('Login') }}</a>
  44. @endif
  45. </div>
  46. </form>
  47. <hr/>
  48. <footer>
  49. &copy; 2022~{{ date('Y') }} {{ config('company_name') }}. All rights reserved.
  50. </footer>
  51. </main>
  52. </div>
  53. @endsection
  54. @push('styles')
  55. <link rel="stylesheet" href="{{ asset('css/auth/passwords.css') }}"/>
  56. @endpush
  57. @push('scripts')
  58. <script src="{{ asset('/js/auth/passwords.js') }}"></script>
  59. @endpush