reset.blade.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row justify-content-center">
  5. <div class="col-md-8">
  6. <div class="card">
  7. <div class="card-header">
  8. <i class="fas fa-key"></i>
  9. {{ __('ui.resetpw') }}
  10. </div>
  11. <div class="card-body">
  12. <form method="POST"
  13. action="@if($express) {{route('nepwupd',$uid)}} @else {{ route('password.update') }} @endif">
  14. @csrf
  15. <input type="hidden" name="token" value="{{ $token ?? '' }}">
  16. <input type="hidden" name="origin" value="{{ $origin ?? '' }}">
  17. <div class="form-group row">
  18. <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail') }}</label>
  19. <div class="col-md-6">
  20. <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email"
  21. value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus @if($express) readonly @endif>
  22. @error('email')
  23. <span class="invalid-feedback" role="alert">
  24. <strong>{{ $message }}</strong>
  25. </span>
  26. @enderror
  27. </div>
  28. </div>
  29. <div class="form-group row">
  30. <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('ui.new_pred') }} {{ __('ui.pwd_lb') }}</label>
  31. <div class="col-md-6">
  32. <input id="password" type="password" class="form-control @error('password') is-invalid @enderror"
  33. name="password" required autocomplete="new-password">
  34. @error('password')
  35. <span class="invalid-feedback" role="alert">
  36. <strong>{{ $message }}</strong>
  37. </span>
  38. @enderror
  39. </div>
  40. </div>
  41. <div class="form-group row">
  42. <label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('ui.pwd_lb2') }}</label>
  43. <div class="col-md-6">
  44. <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
  45. </div>
  46. </div>
  47. <div class="form-group row mb-0">
  48. <div class="col-md-6 offset-md-4">
  49. <a class="btn btn-secondary" href="/{{ $origin ?? '' }}">
  50. <i class="fas fa-chevron-left"></i>
  51. {{__('ui.back_catlog')}}
  52. </a>
  53. <button type="submit" class="btn btn-primary">
  54. <i class="fas fa-save"></i>
  55. {{ __('ui.resetpw') }}
  56. </button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. @endsection