register.blade.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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" role="form" method="POST" action="{{ url('/register') }}">
  10. {!! csrf_field() !!}
  11. <div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
  12. <label class="col-md-4 control-label">Name</label>
  13. <div class="col-md-6">
  14. <input type="text" class="form-control" name="name" value="{{ old('name') }}">
  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 class="col-md-4 control-label">E-Mail Address</label>
  24. <div class="col-md-6">
  25. <input type="email" class="form-control" name="email" value="{{ old('email') }}">
  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 class="col-md-4 control-label">Password</label>
  35. <div class="col-md-6">
  36. <input type="password" class="form-control" name="password">
  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{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
  45. <label class="col-md-4 control-label">Confirm Password</label>
  46. <div class="col-md-6">
  47. <input type="password" class="form-control" name="password_confirmation">
  48. @if ($errors->has('password_confirmation'))
  49. <span class="help-block">
  50. <strong>{{ $errors->first('password_confirmation') }}</strong>
  51. </span>
  52. @endif
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <div class="col-md-6 col-md-offset-4">
  57. <button type="submit" class="btn btn-primary">
  58. <i class="fa fa-btn fa-user"></i>Register
  59. </button>
  60. </div>
  61. </div>
  62. </form>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. @endsection