@extends('admin')

@section('content')
   <div id="header">
         @if (Auth::guest())
            <div class="row">

                <div class="navbar">
                    <div class="container">
                       <a class="navbar-brand" href="{{url('admin/dashboard')}}"><div class="col-sm-12">
			<img class="img-responsive" src="../images/logo.png" >
			</div ><!-- <span class="slogan">admin</span>--></a>
                    </div>
                </div><!-- /navbar -->

            </div><!-- End .row -->
           @endif
   </div> 
<div class="container">

        <div class="loginContainer">
            <form class="form-horizontal" action="{{ url('administrator') }}" id="loginForm" role="form" method="post">
                 <input type="hidden" name="_token" value="{{ csrf_token() }}">
                  <div class="form">
            @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>
                <div class="form-group">
                    <label class="col-lg-12 control-label" for="username">Username:</label>
                    <div class="col-lg-12">
                        <input id="username" type="text" placeholder="Username" name="username" class="form-control">
                        <span class="icon16 icomoon-icon-user right gray marginR10"></span>
                    </div>
                </div><!-- End .form-group  -->
                <div class="form-group">
                    <label class="col-lg-12 control-label" for="password">Password:</label>
                    <div class="col-lg-12">
                        <input id="password" type="password" placeholder="Password" name="password" class="form-control">
                        <span class="icon16 icomoon-icon-lock right gray marginR10"></span>
<!--                        <span class="forgot help-block"><a href="#">Forgot your password?</a></span>-->
                    </div>
                </div><!-- End .form-group  -->
                <div class="form-group">
                    <div class="col-lg-12 clearfix form-actions">
                        <div class="checkbox left">
                            <label><input type="checkbox" id="keepLoged" value="" class="styled" name="remember" /> Keep me logged in</label>
                        </div>
                        <button type="submit" class="btn btn-info right" id="loginBtn"><span class="icon16 icomoon-icon-enter white"></span> Login</button>
                    </div>
                </div><!-- End .form-group  -->
            </form>
        </div>

    </div><!-- End .container -->

@endsection
