register.blade.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends('app')
  2. @section('content')
  3. <div class="container-fluid">
  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. @if (count($errors) > 0)
  10. <div class="alert alert-danger">
  11. <strong>Whoops!</strong> There were some problems with your input.<br><br>
  12. <ul>
  13. @foreach ($errors->all() as $error)
  14. <li>{{ $error }}</li>
  15. @endforeach
  16. </ul>
  17. </div>
  18. @endif
  19. <form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/register') }}">
  20. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  21. <div class="form-group">
  22. <label class="col-md-4 control-label">Name</label>
  23. <div class="col-md-6">
  24. <input type="text" class="form-control" name="name" value="{{ old('name') }}">
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-md-4 control-label">E-Mail Address</label>
  29. <div class="col-md-6">
  30. <input type="email" class="form-control" name="email" value="{{ old('email') }}">
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-md-4 control-label">Password</label>
  35. <div class="col-md-6">
  36. <input type="password" class="form-control" name="password">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-md-4 control-label">Confirm Password</label>
  41. <div class="col-md-6">
  42. <input type="password" class="form-control" name="password_confirmation">
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <div class="col-md-6 col-md-offset-4">
  47. <button type="submit" class="btn btn-primary">
  48. Register
  49. </button>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. @endsection