<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <title>ESP</title>
    <link href="{{ mix('/css/app.css') }}" rel="stylesheet" />
  </head>
  <body>
        <div class="back">
            <div class="div-center">
                <div class="content">
                    <div class="login-logo">
                        <a href="/"><div id="logo" ><img src="{{ URL:: asset('img/logo.png') }}" style="margin:0 auto; display: block;"></div></a>
                      </div>
                    <hr />
                    <br>
                    @if(session()->has('auth_error'))
                    <div class="alert alert-danger">
                        <strong>{{ session()->get('auth_error')}}</strong>
                    </div>
                    @endif
                    <form method="POST" action="{{route('login.custom')}}">
                        @csrf
                        <div class="form-group {{ $errors->has('email') ? 'has-error': ''}}">
                            <label for="exampleInputEmail1">Email address</label>
                            <input type="email" class="form-control" name="email"  placeholder="Enter Email Address" />
                            {!! $errors->first('email', '<p class="text-danger">:message</p>') !!}
                        </div>
                        <div class="form-group {{ $errors->has('password') ? 'has-error': ''}}">
                            <label for="exampleInputPassword1">Password</label>
                            <input type="password" class="form-control" name="password"  placeholder="Enter Password">
                            {!! $errors->first('email', '<p class="text-danger">:message</p>') !!}
                        </div>
                        <div class="float-right">
                            <button type="submit" class="btn btn-success login-btn">Login</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
  </body>
</html>
