@extends('layouts.guest')

@section('head')
	<link rel="stylesheet" href="{{ asset('/plugins/iCheck/square/blue.css') }}">
@endsection

@section('content')
	<div class="login-box">
		<div class="login-logo">
			<a href="{{ url('/') }}">
			<img src="{{ asset('/dist/img/logo_skipper.gif') }}" />
			</a>
		</div>
		<div class="col-md-12">
			@include('alert.success')
			@include('alert.errorlist')
		</div>
		<div class="login-box-body">
			<p class="login-box-msg">{{trans('general.sesion')}}</p>

			<form method="POST" action="{{ url('/login') }}">
			{!! csrf_field() !!}
				<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }} has-feedback">
					<input type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email">
					<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
					@if ($errors->has('username'))
						<span class="help-block">
							<strong>{{ $errors->first('email') }}</strong>
						</span>
					@endif
				</div>
				<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }} has-feedback">
					<input type="password" class="form-control" name="password" placeholder="Password">
					<span class="glyphicon glyphicon-lock form-control-feedback"></span>
					@if ($errors->has('password'))
						<span class="help-block">
							<strong>{{ $errors->first('password') }}</strong>
						</span>
					@endif
				</div>
				<div class="row">
					<div class="col-xs-8">
						<div class="checkbox icheck">
							<label>
							<input type="checkbox"> {{trans('general.remember')}}
							</label>
						</div>
					</div>
					<div class="col-xs-4">
						<button type="submit" class="btn btn-success btn-block btn-flat">{{trans('general.inicio')}}</button>
					</div>
				</div>
			</form>
			<!--<a href="#">I forgot my password</a><br>
			<a href="{{ asset('/register') }}" class="text-center">{{trans('general.register')}}</a>-->
		</div>
	</div>
@endsection

@section('foot')
<script src="{{ asset('/plugins/iCheck/icheck.min.js') }}"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
</script>
@endsection