login.blade.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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">Login</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="/auth/login">
  20. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  21. <div class="form-group">
  22. <label class="col-md-4 control-label">E-Mail Address</label>
  23. <div class="col-md-6">
  24. <input type="email" class="form-control" name="email" value="{{ old('email') }}">
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-md-4 control-label">Password</label>
  29. <div class="col-md-6">
  30. <input type="password" class="form-control" name="password">
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <div class="col-md-6 col-md-offset-4">
  35. <div class="checkbox">
  36. <label>
  37. <input type="checkbox" name="remember"> Remember Me
  38. </label>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <div class="col-md-6 col-md-offset-4">
  44. <button type="submit" class="btn btn-primary">Login</button>
  45. <a class="btn btn-link" href="/password/email">Forgot Your Password?</a>
  46. </div>
  47. </div>
  48. </form>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. @endsection