@extends('layouts.theme.auth.app')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-xl-5"><img class="bg-img-contain bg-center" src="{{ asset('assets/images/login/login2.svg') }}" alt="looginpage" /></div>
        <div class="col-xl-7 p-0">
            <div class="login-card">
                    <form method="POST" action="{{ route('login') }}" class="theme-form login-form needs-validation" novalidate="">
                        <h4>Login</h4>
	                    <h6>¡Bienvenido de nuevo! Ingrese a su cuenta.</h6>

                        @csrf

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('Email') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>

                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Contraseña') }}</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">

                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="checkbox">

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

                                    <label class="text-muted" for="remember">
                                        {{ __('Recordarme') }}
                                    </label>
                            </div>
                            <a class="link" href="{{ route('password.request') }}">¿Olvidaste tu contraseña?</a>
                        </div>
                        <div class="form-group m-t-5">
                            {!! NoCaptcha::renderJs('es', false, 'recaptchaCallback') !!}
                            {!! NoCaptcha::display() !!}
                            @if ($errors->has('g-recaptcha-response'))
                                <span class="text-danger" role="alert">
                                    <strong>{{ $errors->first('g-recaptcha-response') }}</strong>
                                </span>
                            @endif
                        </div>
                        <div class="form-group ">
                            <div class="col-md-8 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Login') }}
                                </button>
                            </div>
                        </div>

                            </div>
                        </div>
                    </form>
                </div>
	        </div>
	    </div>
	</div>
@endsection
<script>
    var recaptchaCallback = function(){};
</script>
