<script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script> 



<div class="row flex justify-content-between align-items-center">

          <div class="col-md-2"><a href="/"><img src="/images/logo.png" alt="Eurekaselect logo" class="hvr-grow logo"></a></div>

          <div class="col-md-5">

            <a class="hidden-xs hidden-sm hor-banner" target="_blank" href="http://bit.ly/2ttc7yd"><img alt="Bentham Newsletter" src="/images/bentham_newsletter.jpg" title="newsletter banner"><span class="sr-only sr-only-focusable">newsletter banner</span></a>



            <form class="search mt-md-2 mb-md-4" action="{{ route('advancesearch') }}">

            <div class="input-group">
                                <input type="text" name="searchvalue" class="form-control" placeholder="Search here..." aria-label="Search anything here" aria-describedby="search-anything-here" autocomplete="off">
              <div class="input-group-append">
                                    <button name="search" type="submit" title="Search Button" id="search-anything-here"><i class="fas fa-search"><span class="sr-only sr-only-focusable">Search anything here</span></i></button>
              </div>

            </div>

            </form>

          </div>

          <div class="col-lg-5 col-md-5 pt-md-4 top-links text-right">

                        <!-- Authentication Links -->                        

                        @guest

                            @if(session()->has('ip_base_access'))                            

                            <a class="btn btn-link text-dark" href="/marklist">

                            <i class="fas fa-thumbtack">

                            </i>

                            Mark List

                            </a>

                            @else                            

                            <a class="btn btn-link text-dark dropdown-toggle" href="#" id="login-wig" data-toggle="dropdown"><i class="far fa-user"></i> Login</a>

                              <div class="dropdown-menu login-pop" id="login-wigs">

                                <h5 class="text-center">{{ __('Login') }}</h5>

                                    <hr>

                                @if (Session::has('login_message'))

                                  <div class="alert alert-info alert-dismissible fade show" data-auto-dismiss="5000" role="alert">

                                  {!! Session::get('login_message') !!}         

                                     <button type="button" class="close" data-dismiss="alert" aria-label="Close">

                                      <span aria-hidden="true">&times;</span>

                                    </button>

                                  </div>

                                  @endif                                 

                                 <form method="POST" action="{{ route('login') }}" aria-label="{{ __('Login') }}">

                                    @csrf

                                <div class="form-group">

                                        <input id="identity" type="identity" class="font-14 form-control form-control-sm {{ $errors->has('identity') ? ' is-invalid' : '' }}" name="identity" value="{{ old('identity') }}" placeholder="E-Mail/User" required autofocus>



                                        @if ($errors->has('identity'))

                                            <span class="invalid-feedback" role="alert">

                                                <strong>{{ $errors->first('identity') }}</strong>

                                            </span>

                                        @endif

                                </div>



                                <div class="form-group">

                                    <input id="password" type="password" class="font-14 form-control form-control-sm {{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" placeholder="Password"  required>



                                    @if ($errors->has('password'))

                                        <span class="invalid-feedback" role="alert">

                                            <strong>{{ $errors->first('password') }}</strong>

                                        </span>

                                    @endif

                                </div>

                                <div class="form-group mb-0">

                                    <div class="captcha row">
                                       <div class="col-md-6 text-center"> 
                                            <span>{!! captcha_img() !!}</span>
                                        </div>
                                    </div>

                                    <div class="form-group mb-4">
                                        <input id="captcha" type="text" class="form-control" placeholder="Enter Captcha" aria-label="enter captcha" name="captcha">
                                    </div>

                                  @if ($errors->has('captcha'))

                                        <span class="invalid-feedback" style="display: block;">

                                          <strong>{{ $errors->first('captcha') }}</strong>

                                        </span>

                                    @endif

                                </div>

                                <div class="form-group">

                                    <div class="custom-control custom-checkbox">

                                      <input type="checkbox" class="custom-control-input form-check-input"  name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>

                                      <label class="custom-control-label" for="remember">{{ __('Remember Me') }}</label>

                                    </div>

                                </div>

                                <!--div class="form-group">

                                    <div class="form-check">

                                        <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>



                                        <label class="form-check-label" for="remember">

                                            {{ __('Remember Me') }}

                                        </label>

                                    </div>

                                </div-->







                                <div class="form-group row mb-0">

                                    <div class="col-md-12 mb-3">

                                        <button type="submit" class="btn bg-primary-light text-white btn-sm btn-block">

                                            {{ __('Login') }}

                                        </button>

                                    </div>

                                    <div class="col-md-12">

                                        <a href="https://www.eurekaselect.net/public/openathens/index.php" class="btn bg-primary-light text-white btn-sm btn-block">

                                            {{ __('OpenAthens Login') }}

                                        </a>

                                    </div>

                                </div>

                                

                                <div class="dropdown-divider"></div>

                                <a class="dropdown-item px-0" href="{{ route('password.request') }}">

                                    {{ __('Forgot Your Password?') }}</a>

                                <a class="dropdown-item px-0"  href="{{ route('register') }}">

                                New around here? Sign up</a>

                              </form>

                              </div>

                            <a class="btn btn-link text-dark" href="{{ route('register') }}">

                                <i class="fas fa-user-plus" aria-label="register link">

                                </i>

                                {{ __('Register') }}

                            </a>

                            @endif

                            <a class="btn btn-link text-dark" href="/cart">

                                <i class="fas fa-shopping-cart" aria-label="cart link">

                                </i>

                                Cart                                

                                <span class="badge badge-dark">

                                    {{ App\Models\Cart::total() }}

                                </span>

                            </a>

                            

                        @else



                         <a class="btn btn-link text-dark" href="/cart">                            

                            <i class="fas fa-shopping-cart" aria-label="cart link">

                            </i>

                            Cart 

                            <span class="badge badge-dark">

                                {{ App\Models\Cart::total() }}

                            </span>

                        </a>                                               

                        @endguest

          </div>

        </div>

         @if($errors->has('identity') || $errors->has('password') || $errors->has('g-recaptcha-response'))

        <script type="text/javascript">

            $(document).ready(function(){ 

            $("#login-wig").dropdown('toggle');

            });

        </script>

        @endif



        