@extends('app')

@section('content')


<div class="container-fluid">
	<div id="page-login" class="row">
		<div class="col-xs-12 col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
			<div class="text-right">
				<a href="{{ url('/auth/register') }} class="txt-default">Need an account?</a>
			</div>
			<div class="box">
				<div class="box-content">

                    @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

					<div class="text-center">
						<h3 class="page-header">ODC Login</h3>
					</div>
                    <form class="" role="form" method="POST" action="{{ url('/auth/login') }}">
                    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    					<div class="form-group">
						    <label class="control-label">E-Mail Address</label>
						    <input type="email" class="form-control" name="email" value="{{ old('email') }}">
					    </div>
					    <div class="form-group">
						    <label class="control-label">Password</label>
						    <input type="password" class="form-control" name="password">
					    </div>
					    <div class="form-group">
                            <div class="">
                    	        <div class="checkbox">
                    		        <label>
                    			        <input type="checkbox" name="remember" checked> Remember Me
                    			        <i class="fa fa-square-o"></i>
                    			    </label>
                    	        </div>
                    	    </div>
                        </div>

                        <div class="form-group">
                            <div class="">
                    	        <button type="submit" class="btn btn-primary">Login</button>
                                    <a class="btn btn-link" href="{{ url('/password/email') }}">Forgot Your Password?</a>
                    	    </div>
                        </div>
                    </form>
				</div>
			</div>
		</div>
	</div>
</div>
@endsection
