@extends('admin.login-master')
@section('content')
@if (!empty($data))
<a class="btn btn-sm btn-primary" href="logout">Logout</a>
@endif
<div class="col-md-12">
    <div class="container">
        <div class="row">
            <div class="com-md-12">
                <div class="notification login-alert">
                    Please Enter Valid Username And Password!
                </div>
                <div class="notification notification-success logged-out">
                    You logged out successfully!
                </div>
                <div class="well welcome-text">
                    <img src="/public/images/{{$settings->header_image}}" class="img-responsive">
                    Hello, to access {{$settings->site_name}} Control panel please <button class="btn btn-default btn-login">Log in</button>
                </div>
            </div>
        </div>
    </div>
    <!-- Login Box -->
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="well login-box bg-default">
                    {{Form::open(array('url'=>'/admin-login',
                                'class'=>'',
                                'id'=>'',
                                'method'=>'POST'))}}
                    <legend><i class="fa fa-lock"></i> Login</legend>
                    <div class="form-group">
                        <label for="username-email">E-mail or Username</label>
                        {{Form::text('username','',array('id'=>'username-email','class'=>'form-control','placeholder'=>'E-mail or Username'))}}
                    </div>
                    <div class="form-group">
                        <label for="password">Password</label>
                        {{Form::password('password',array('id'=>'password','class'=>'form-control','placeholder'=>'Password'))}}
                    </div>
                    <div class="form-group text-center">
                        {{Form::button('Cancel',array('class'=>'btn btn-danger btn-cancel-action'))}}
                        {{Form::button('<i class="fa fa-lock"></i> Login',array('class'=>'btn btn-info btn-login-submit','type'=>'submit'))}}
                    </div>
                    <p> </p>
                    <center><span id="auth-check"></span></center>
                    {{Form::close()}}
                </div>
            </div>
        </div>
    </div>
    <!-- // End Login ----->
</div>
@stop
