<?php $__env->startSection('title', 'Shopping Now'); ?>

<?php $__env->startSection('content'); ?>
    <?php
        Session::forget('link');
        if(route('home').'/register'==url()->previous()){
            Session::put(['link' => route('home')]);
        }elseif(route('home').'/join'==url()->previous()){
            Session::put(['link' => route('home')]);
        }elseif(route('home').'/login'==url()->previous()){
            Session::put(['link' => route('home')]);
        }elseif(route('home').'/seller'==url()->previous()){
            Session::put(['link' => route('home')]);
        }
        elseif(route('home').'/password/reset'==url()->previous()){
            Session::put(['link' => route('home')]);
        }
        else{
            Session::put(['link' => url()->previous()]);
        }
    ?>
    <div class="container">
        <div class="row">
            <div class="col-md-4 offset-md-4 bg-white rounded-3 mt-5 py-4 px-3">
                <?php if(session('error')): ?>
                    <div class="alert alert-danger">
                        <?php echo e(session('error')); ?>

                    </div>
                <?php endif; ?>
                
                
                <h4 class="pb-3" style="color:#002f5f;"><b>Sign in</b></h4>

                <?php if(setting('user_login_with') == 1): ?>
                    <?php echo $__env->make('auth.login_part.login_with_otp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php elseif(setting('user_login_with') == 2): ?>
                    <?php echo $__env->make('auth.login_part.login_with_pass_otp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php else: ?>
                    <?php echo $__env->make('auth.login_part.login_with_pass', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <?php endif; ?>
            </div>
        
            <div class="col-md-4 offset-md-4 mb-5">
                <br>
                <?php echo $__env->make('auth.login_part.login_with_google', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <br>
                <?php echo $__env->make('auth.login_part.forgot_pass', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <span style="display: block;text-align: center;">Create a new Account <a href="<?php echo e(route('register')); ?>" style="color:blue">Sign Up</a></span>
            </div>
        </div>

    </div>

    <?php $__env->startPush('js'); ?>
    <script>
        $(document).ready(function () {
            var showPassIcon = $('#show_pass');
            var passwordInput = $('#password');
            var confirmPasswordInput = $('#confirm-password');

            showPassIcon.on('click', function () {
                if (passwordInput.attr('type') === 'password') {
                    passwordInput.attr('type', 'text');
                    confirmPasswordInput.attr('type', 'text');
                    showPassIcon.removeClass('fa-eye').addClass('fa-eye-slash');
                } else {
                    passwordInput.attr('type', 'password');
                    confirmPasswordInput.attr('type', 'password');
                    showPassIcon.removeClass('fa-eye-slash').addClass('fa-eye');
                }
            });
        });
    </script>
    <?php $__env->stopPush(); ?>
    <?php $__env->startPush('css'); ?>
        <style>
            form .form2 {
                box-shadow: 0px 0px 5px gainsboro;
                padding: 20px;
                border-radius: 5px;
                margin-top: 50px;
                background: white
            }
            #show_pass {
                cursor: pointer;
            }
        </style>
    <?php $__env->stopPush(); ?>
    <?php echo $__env->make('auth.partial.demo_auth_credintial_inject', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/apleusbj/public_html/resources/views/auth/login.blade.php ENDPATH**/ ?>