You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
3.4 KiB

  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">Register</div>
  8. <div class="panel-body">
  9. <form class="form-horizontal" method="POST" action="{{ route('register') }}">
  10. {{ csrf_field() }}
  11. <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
  12. <label for="name" class="col-md-4 control-label">Name</label>
  13. <div class="col-md-6">
  14. <input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" required autofocus>
  15. @if ($errors->has('name'))
  16. <span class="help-block">
  17. <strong>{{ $errors->first('name') }}</strong>
  18. </span>
  19. @endif
  20. </div>
  21. </div>
  22. <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
  23. <label for="email" class="col-md-4 control-label">E-Mail Address</label>
  24. <div class="col-md-6">
  25. <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required>
  26. @if ($errors->has('email'))
  27. <span class="help-block">
  28. <strong>{{ $errors->first('email') }}</strong>
  29. </span>
  30. @endif
  31. </div>
  32. </div>
  33. <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
  34. <label for="password" class="col-md-4 control-label">Password</label>
  35. <div class="col-md-6">
  36. <input id="password" type="password" class="form-control" name="password" required>
  37. @if ($errors->has('password'))
  38. <span class="help-block">
  39. <strong>{{ $errors->first('password') }}</strong>
  40. </span>
  41. @endif
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
  46. <div class="col-md-6">
  47. <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
  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. Register
  54. </button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. @endsection