@extends('layout')

@section('content')

<div class="container-fluid">
	<div class="row">
		<div class="col-md-8 col-md-offset-2">
			<div class="panel panel-default">
				<div class="panel-heading">Вход на сайт</div>
				<div class="panel-body">
					@if (count($errors) > 0)
						<div class="alert alert-danger">
							<strong>Whoops!</strong> There were some problems with your input.<br><br>
							<ul>
								@foreach ($errors->all() as $error)
									<li>{{ $error }}</li>
								@endforeach
							</ul>
						</div>
					@endif

					<form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/login') }}">
						<input type="hidden" name="_token" value="{{ csrf_token() }}">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>Введите логин или e-mail:</td>
                                <td>
                                    <input type="email" class="form-control" name="email" value="{{ old('email') }}">
                                </td>
                            </tr>
                            <tr>
                                <td>Введите пароль:</td>
                                <td>
                                    <input type="password" class="form-control" name="password">
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><input type="checkbox" name="remember"> <span>Запомнить меня</span></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <button type="submit" class="btn btn-primary">Войти</button>
                                    <a class="btn btn-link" href="{{ url('/password/email') }}">Забыли пароль?</a>
                                </td>
                            </tr>
                        </table>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

@stop