reset.blade.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-8 col-md-offset-2">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">Reset Password</div>
  8. <div class="panel-body">
  9. @if (session('status'))
  10. <div class="alert alert-success">
  11. {{ session('status') }}
  12. </div>
  13. @endif
  14. <form class="form-horizontal" role="form" method="POST" action="{{ route('password.request') }}">
  15. {{ csrf_field() }}
  16. <input type="hidden" name="token" value="{{ $token }}">
  17. <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
  18. <label for="email" class="col-md-4 control-label">E-Mail Address</label>
  19. <div class="col-md-6">
  20. <input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}" required autofocus>
  21. @if ($errors->has('email'))
  22. <span class="help-block">
  23. <strong>{{ $errors->first('email') }}</strong>
  24. </span>
  25. @endif
  26. </div>
  27. </div>
  28. <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
  29. <label for="password" class="col-md-4 control-label">Password</label>
  30. <div class="col-md-6">
  31. <input id="password" type="password" class="form-control" name="password" required>
  32. @if ($errors->has('password'))
  33. <span class="help-block">
  34. <strong>{{ $errors->first('password') }}</strong>
  35. </span>
  36. @endif
  37. </div>
  38. </div>
  39. <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
  40. <label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
  41. <div class="col-md-6">
  42. <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
  43. @if ($errors->has('password_confirmation'))
  44. <span class="help-block">
  45. <strong>{{ $errors->first('password_confirmation') }}</strong>
  46. </span>
  47. @endif
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <div class="col-md-6 col-md-offset-4">
  52. <button type="submit" class="btn btn-primary">
  53. Reset Password
  54. </button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. @endsection