@extends('hello')

@section('content')
<div class="container" style="margin-top: 40px;">
	<div class="row">
		<div class="col-md-8 col-md-offset-2">
			<div class="panel panel-default">
				<div class="panel-heading"><h2 class="panel-title">Login</h2></div>
				<div class="panel-body">
					
				{{ Form::open(array('route' => 'login')) }}
					<div class="input-group form-group">
						<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
						<input type="text" class="form-control " name="user" placeholder="Benutzername">
					</div>
					<div class="input-group form-group">
						<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
						<input type="password" class="form-control " name="password" placeholder="Passwort">
					</div>
					@if(Session::has('login_errors'))
						<div class="alert alert-danger alert-dismissable">
							<button type="button" class="close" data-dismiss="alert">&times;</button>
							Login-Daten fehlerhaft!
						</div>
					@endif
					<div class="form-group">
						<button type="submit" class="btn btn-primary">Anmelden</button>
						<p class="help-block"><a href="{{ url('passwort-vergessen') }}">Passwort vergessen?</a><br>
						<a href="{{ url('register') }}">Registrieren</a></p>
					</div>
				{{ Form::close() }}
				</div>
			</div>
		</div>
	</div>
</div>
@stop

@section('title')
Login ~
@stop