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.
64 lines
2.6 KiB
64 lines
2.6 KiB
@extends('layouts.app')
|
|
|
|
@section('title', 'Login')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-4 col-md-offset-4">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Login</div>
|
|
<div class="panel-body">
|
|
<form class="form-horizontal" role="form" method="POST" action="{{ route('login') }}">
|
|
{{ csrf_field() }}
|
|
|
|
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
|
<label for="username" class="col-md-4 control-label">Username</label>
|
|
|
|
<div class="col-md-8">
|
|
<input id="username" type="text" class="form-control" name="username" value="{{ old('username') }}" required autofocus>
|
|
@if ($errors->has('username'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('username') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
|
<label for="password" class="col-md-4 control-label">Password</label>
|
|
|
|
<div class="col-md-8">
|
|
<input id="password" type="password" class="form-control" name="password" required>
|
|
|
|
@if ($errors->has('password'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('password') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-8 col-md-offset-4">
|
|
<button type="submit" class="btn btn-primary btn-block">
|
|
Login
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (count($errors) > 0)
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
@endsection
|