<?php $__env->startSection('title', 'Iniciar sesión'); ?>

<?php $__env->startSection('content'); ?>
    <article class="page" id="login">
        <div class="breadcrumb">
            <div class="container d-flex align-items-center">
                <a href="<?php echo e(url('/')); ?>">Inicio</a>
                <span><?php echo $__env->yieldContent('title'); ?></span>
            </div>
        </div>
        <section class="content">
            <div class="container">
                <?php if($errors->any()): ?>
                    <div class="alert alert-danger form-group">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php echo e($error); ?><br>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                <?php endif; ?>
                <?php if($status): ?>
                    <div class="alert alert-success form-group">
                        <?php echo e($status); ?>

                    </div>
                <?php endif; ?>
                <div class="row">
                    <div class="col-lg-6">
                        <div class="bg-light">
                            <div class="inner-container">
                                <h2>Ingresar</h2>
                                <p>¡Genial tenerte de vuelta!</p>
                                <?php echo Form::open([
                                    'route' => 'login'
                                ]); ?>

                                <div class="form-group">
                                    <label for="username" class="form-label">Email o usuario</label>
                                    <?php echo Form::text('username', null, ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                                </div>
                                <div class="form-group">
                                    <label for="password" class="form-label">Contraseña</label>
                                    <?php echo Form::password('password', ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                                </div>
                                <div class="form-group">
                                    <div class="g-recaptcha" data-sitekey="<?php echo e(env('RECAPTCHA_SITEKEY')); ?>"></div>
                                </div>
                                <div class="form-group">
                                    <button type="submit" class="btn">
                                        <span>Ingresar</span>
                                        <i class="far fa-arrow-right"></i>
                                    </button>
                                </div>
                                <div class="form-group">
                                    <input type="checkbox" class="form-check-input" id="remember">
                                    <label class="form-check-label" for="remember">Recordarme</label>
                                </div>
                                <div class="form-group">
                                    <p><a href="<?php echo e(route('password.request')); ?>">¿Olvidaste tu contraseña?</a></p>
                                </div>
                                <?php echo Form::close(); ?>

                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="inner-container">
                            <h2>Registrarse</h2>
                            <p>Si todavía no tenés una cuenta, registrate!</p>
                            <?php echo Form::open([
                                'route' => 'register'
                            ]); ?>

                            <div class="form-group">
                                <label class="form-label">Nombre</label>
                                <?php echo Form::text('user_data[first_name]', null, ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                            </div>
                            <div class="form-group">
                                <label class="form-label">Apellido</label>
                                <?php echo Form::text('user_data[last_name]', null, ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                            </div>
                            <div class="form-group">
                                <label class="form-label">Email</label>
                                <?php echo Form::email('email', null, ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                            </div>
                            <div class="form-group">
                                <label class="form-label">Contraseña </label>
                                <?php echo Form::password('password', ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                            </div>
                            <div class="form-group">
                                <label class="form-label">Confirmar contraseña </label>
                                <?php echo Form::password('password_confirmation', ['placeholder' => '', 'required', 'class' => 'form-control']); ?>

                            </div>
                            <div class="form-group">
                                <div class="g-recaptcha" data-sitekey="<?php echo e(env('RECAPTCHA_SITEKEY')); ?>"></div>
                            </div>
                            <?php if($options->register_text): ?>
                                <div class="form-group">
                                    <p><?php echo $options->register_text; ?></p>
                                </div>
                            <?php endif; ?>
                            <div class="form-group">
                                <button type="submit" class="btn">
                                    <span>Registrarse</span>
                                    <i class="far fa-arrow-right"></i>
                                </button>
                            </div>
                            <?php echo Form::close(); ?>

                        </div>
                    </div>
                </div>
            </div>
        </section>
    </article>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.frontend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/poshcom/bgreen.posh.com.py/resources/views/auth/login.blade.php ENDPATH**/ ?>