[0924b6c] | 1 | @extends("layouts.auth")
|
---|
| 2 |
|
---|
| 3 | @section("title", "Login | TechnoBlog")
|
---|
| 4 |
|
---|
| 5 | @section("auth_content")
|
---|
| 6 | <div class="page">
|
---|
| 7 | <div class="page-single">
|
---|
| 8 | <div class="container">
|
---|
| 9 | <div class="row">
|
---|
| 10 | <div class="col col-login mx-auto">
|
---|
| 11 | <div class="text-center mb-6">
|
---|
| 12 | <img src="/assets/images/logo1.png">
|
---|
| 13 | </div>
|
---|
| 14 | <form class="card" action="{{ route("auth.login") }}" method="post" accept-charset="utf-8">
|
---|
| 15 |
|
---|
| 16 | @csrf
|
---|
| 17 |
|
---|
| 18 | <div class="card-body p-6">
|
---|
| 19 | <div class="card-title">Login to your account</div>
|
---|
| 20 |
|
---|
| 21 | @if(Session::has('isActiveError'))
|
---|
| 22 | <div class="alert alert-danger alert-dismissible fade show" role="alert">
|
---|
| 23 | <strong> {{ Session::get('isActiveError') }} </strong>
|
---|
| 24 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"></button>
|
---|
| 25 | </div>
|
---|
| 26 | @endif
|
---|
| 27 |
|
---|
| 28 | @if(Session::has('loginError'))
|
---|
| 29 | <div class="alert alert-error fade show" role="alert">
|
---|
| 30 | <strong> {{ Session::get('loginError') }} </strong>
|
---|
| 31 | <button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
---|
| 32 | </button>
|
---|
| 33 | </div>
|
---|
| 34 | @endif
|
---|
| 35 |
|
---|
| 36 | <div class="form-group">
|
---|
| 37 | <label class="form-label">Username</label>
|
---|
| 38 | <input id="username" type="text" tabindex="1" class="form-control{{ Session::has('usernameError') ? ' is-invalid' : '' }}" name="username" value="{{ old('username') }}" autocomplete="off" required autofocus>
|
---|
| 39 | @if(Session::has('usernameError'))
|
---|
| 40 | <span class="invalid-feedback" role="alert">
|
---|
| 41 | <strong>{{ Session::get('usernameError') }}</strong>
|
---|
| 42 | </span>
|
---|
| 43 | @endif
|
---|
| 44 | </div>
|
---|
| 45 | <div class="form-group">
|
---|
| 46 | <label class="form-label">
|
---|
| 47 | Password
|
---|
| 48 | <a href="/auth/forgot" tabindex="-1" class="float-right small">I forgot password</a>
|
---|
| 49 | </label>
|
---|
| 50 | <input id="password" type="password" tabindex="2" class="form-control{{ Session::has('passwordError') ? ' is-invalid' : '' }}" name="password" autocomplete="off" required>
|
---|
| 51 | @if(Session::has('passwordError'))
|
---|
| 52 | <span class="invalid-feedback" role="alert">
|
---|
| 53 | <strong>{{ Session::get('passwordError') }}</strong>
|
---|
| 54 | </span>
|
---|
| 55 | @endif
|
---|
| 56 | </div>
|
---|
| 57 | <div class="form-group">
|
---|
| 58 | <label class="custom-control custom-checkbox">
|
---|
| 59 | <input class="custom-control-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
---|
| 60 | <span class="custom-control-label">Remember me</span>
|
---|
| 61 | </label>
|
---|
| 62 | </div>
|
---|
| 63 | <div class="form-footer">
|
---|
| 64 | <input type="submit" value="Sign in" class="btn btn-primary btn-block">
|
---|
| 65 | </div>
|
---|
| 66 | </div>
|
---|
| 67 |
|
---|
| 68 | </form>
|
---|
| 69 | </div>
|
---|
| 70 | </div>
|
---|
| 71 | </div>
|
---|
| 72 | </div>
|
---|
| 73 | </div>
|
---|
| 74 | @endsection
|
---|