<?php $__env->startSection('title',trans('Login In')); ?>


<?php $__env->startSection('content'); ?>

    <?php echo $__env->make($theme.'partials.banner', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    
    <!--===Account Section===-->
    <section class="account-section bg_img " data-background="<?php echo e(getFile(config('location.logo.path').'background_image.jpg')); ?>">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-md-10 col-lg-7">
                    <div class="account-wrapper">
                        <h4 class="account-title"><?php echo app('translator')->get('Login'); ?></h4>
                       <!--  <h6 class="account-subtitle"><?php echo app('translator')->get("Sign in to <a href='".url('/')."' class='text--base'>".$basic->site_title."</a> with your ".$basic->site_title." ID"); ?></h6> -->

                        <form action="<?php echo e(route('login')); ?>" method="post" onsubmit="return submitUserForm();">
                            <?php echo csrf_field(); ?>
                            <div class="account-form-area">
                                <div class="input--group">
                                    <label for="username" class="form-label"><?php echo app('translator')->get('Email Or Username'); ?></label>
                                    <div class="group--input">
                                        <input type="text" id="username" name="username" value="<?php echo e(old('username')); ?>">
                                        <?php $__errorArgs = ['username'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="text-danger  mt-1"><?php echo e(trans($message)); ?></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="text-danger  mt-1"><?php echo e(trans($message)); ?></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>


                                <div class="input--group">
                                    <label for="password" class="form-label"><?php echo app('translator')->get('Password'); ?></label>
                                    <div class="group--input">
                                        <input type="password" id="password" name="password">
                                        <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><span class="text-danger mt-1"><?php echo e(trans($message)); ?></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>


                                <?php if(basicControl()->reCaptcha_status_login): ?>
                                    <div class="box mb-4 form-group">
                                        <?php echo NoCaptcha::renderJs(session()->get('trans')); ?>

                                        <?php echo NoCaptcha::display($basic->theme == 'darkmode' ? ['data-theme' => 'dark'] : []); ?>

                                        <?php $__errorArgs = ['g-recaptcha-response'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="text-danger mt-1"><?php echo app('translator')->get($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                <?php endif; ?>

                                <div class="input--group">
                                    <label class="form-label d-sm-block d-none">&nbsp;</label>
                                    <div class="group--input d-flex flex-wrap">
                                        <div class="checkgroup">
                                            <input type="checkbox" id="remember-me" name="remember" <?php echo e(old('remember') ? 'checked' : ''); ?>>
                                            <label for="remember-me" class="form-label"><?php echo app('translator')->get('Remember Me'); ?></label>
                                        </div>
                                        <a class="text--base"  href="<?php echo e(route('password.request')); ?>"><?php echo app('translator')->get("Forgot password?"); ?></a>
                                    </div>
                                </div>



                            </div>
                            <div
                                class="d-flex flex-wrap justify-content-between align-items-center m--5px-none mt-3 fs-14">
                                <div class="m--5px">
                                    <?php echo app('translator')->get("Don't have any account?"); ?> <a href="<?php echo e(route('register')); ?>" class="text--base ms-2"><?php echo app('translator')->get('Sign Up'); ?></a>
                                </div>
                                <div class="btn-group m-0">
                                    <button type="submit" class="cmn-btn"><?php echo app('translator')->get('Sign In'); ?></button>
                                </div>
                            </div>

                        </form>


                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--===Account Section===-->
<?php $__env->stopSection(); ?>


<?php $__env->startPush('style'); ?>
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('script'); ?>


    <script>
        "use strict";

        function submitUserForm() {

            var isCapcha = "<?php echo e(config('basic.google_captcha')); ?>"
            if (isCapcha == '0') {
                return true
            }

            var v = grecaptcha.getResponse();
            if (v.length == 0) {
                document.getElementById('captcha').innerHTML = "<?php echo e(trans('Captcha field is required.')); ?>";
                document.getElementById('captcha').classList.remove("text-info");
                document.getElementById('captcha').classList.add("text-danger");
                return false;
            } else {
                document.getElementById('captcha').innerHTML = "<?php echo e(trans('Captcha completed')); ?>";
                document.getElementById('captcha').classList.remove("text-danger");
                document.getElementById('captcha').classList.add("text-info");
                return true;
            }

        }

    </script>
<?php $__env->stopPush(); ?>


<?php echo $__env->make($theme.'layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/escrow/app.escrow.icu/resources/views/themes/darkmode/auth/login.blade.php ENDPATH**/ ?>