

<?php $__env->startSection('styles'); ?>
    <style>
        .login_logo img {
            max-width: 140px;
            margin: 0 auto;
        }
        .register_part {
            background: var(--background_color) !important;
            min-height: 100vh !important;
        }
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<section class="login_area register_part">
    <div class="container">
        <div class="row justify-content-center align-items-center">

            <div class="col-lg-6 col-xl-4">
                <?php if(env('APP_SYNC')): ?>
                    <div class="d-flex justify-content-center mt-20 grid_gap_5 flex-wrap">
                        <button class="btn_1" id="admin"><?php echo e(__('common.admin')); ?></button>
                        <button class="btn_1" id="customer"><?php echo e(__('common.customer')); ?></button>
                        <?php if(isModuleActive('MultiVendor')): ?>
                        <button class="btn_1 mt_sm_0" id="seller"><?php echo e(__('common.seller')); ?></button>
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
                <br>
                <div class="register_form_iner">
                    <div class="login_logo text-center mb-3">
                        <a href="<?php echo e(url('/')); ?>"><img src="<?php echo e(asset(asset_path(app('general_setting')->logo))); ?>" alt=""></a>
                    </div>
                    <h2><?php echo e(__('defaultTheme.welcome_back')); ?>, <br><?php echo e(__('defaultTheme.please_login_to_your_account')); ?></h2>
                    <form method="POST" class="register_form" name="login" action="<?php echo e(route('login')); ?>" id="login_form">
                        <?php echo csrf_field(); ?>
                        <div class="form-row">
                            <div class="col-md-12">
                                <label for="email"><?php echo e(__('defaultTheme.email_or_phone')); ?></label>
                                <input type="text" id="text" name="login" placeholder="<?php echo e(__('defaultTheme.email_or_phone')); ?>" value="<?php echo e(old('login')); ?>" class="<?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                    >

                                <span class="text-danger" ><?php echo e($errors->first('email')); ?></span>
                                <span class="text-danger" ><?php echo e($errors->first('username')); ?></span>
                            </div>
                            <div class="col-md-12">
                                <label for="password"><?php echo e(__('common.password')); ?></label>
                                <input type="password" id="password" name="password" placeholder="<?php echo e(__('common.password')); ?>" class="<?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('password')); ?>">

                                <span class="text-danger" ><?php echo e($errors->first('password')); ?></span>

                            </div>
                            <div class="col-md-6 col-6">
                                <div class="checkbox">
                                    <label class="cs_checkbox">
                                        <input type="checkbox" name="remember" id="remember" <?php echo e(old('remember') ? 'checked' : ''); ?>>
                                        <span class="checkmark"></span>
                                    </label>
                                    <p><?php echo e(__('defaultTheme.remember_me')); ?></p>
                                </div>
                            </div>
                            <div class="col-md-6 col-6">
                            <a href="<?php echo e(url('/password/reset')); ?>" class="forgot_pass_btn"><?php echo e(__('defaultTheme.forgot_password')); ?></a>
                            </div>
                            <div class="col-md-12 text-center">
                                <div class="register_area">
                                    <button type="submit" class="btn_1" id="submit_btn" disabled><?php echo e(__('defaultTheme.login')); ?></button>
                                    <div>
                                        <p><strong><?php echo e(__('defaultTheme.login_with')); ?></strong></p>
                                        <?php if(app('general_setting')->facebook_status): ?>
                                        <a href="<?php echo e(url('/login/facebook')); ?>" class="btn btn-sm btn-info"><i class="ti-facebook"></i></a>
                                        <?php endif; ?>
                                        <?php if(app('general_setting')->google_status): ?>
                                        <a href="<?php echo e(url('/login/google')); ?>" class="btn btn-sm btn-info"><i class="ti-google"></i></a>
                                        <?php endif; ?>
                                        <?php if(app('general_setting')->twitter_status): ?>
                                        <a href="<?php echo e(url('/login/twitter')); ?>" class="btn btn-sm btn-info"><i class="ti-twitter"></i></a>
                                        <?php endif; ?>
                                        <?php if(app('general_setting')->linkedin_status): ?>
                                        <a href="<?php echo e(url('/login/linkedin')); ?>" class="btn btn-sm btn-info"><i class="ti-linkedin"></i></a>
                                        <?php endif; ?>
                                    </div>

                                    <span><?php echo e(__('defaultTheme.new_member')); ?></span>
                                    <p> <a href="<?php echo e(url('/register')); ?>"><?php echo e(__('defaultTheme.create_account')); ?></a> <?php echo e(__('common.here')); ?></p>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
    <script>
        (function($){
            "use strict";
            $(document).ready(function(){
                $('#submit_btn').removeAttr('disabled');
                $(document).on('submit', '#login_form', function(event){

                    $('#login_form > div > div:nth-child(1) > span:nth-child(3)').text('');
                    $('#login_form > div > div:nth-child(2) > span').text('');
                    $('#login_form > div > div:nth-child(1) > span:nth-child(4)').text('');

                    let email = $('#text').val();
                    let password = $('#password').val();

                    let val_check = 0;

                    if(email == ''){
                        $('#login_form > div > div:nth-child(1) > span:nth-child(3)').text('The email or phone field is required.');
                        val_check = 1;
                    }

                    if(password == ''){
                        $('#login_form > div > div:nth-child(2) > span').text('The password field is required.');
                        val_check = 1;
                    }

                    if(val_check == 1){
                        event.preventDefault();
                    }
                });

                $(document).on('click', '#admin', function(event){
                    $("#text").val('superadmin@gmail.com');
                    $("#password").val('12345678');
                });
                $(document).on('click', '#customer', function(event){
                    $("#text").val('customer@gmail.com');
                    $("#password").val('12345678');
                });
                $(document).on('click', '#seller', function(event){
                    $("#text").val('seller@gmail.com');
                    $("#password").val('12345678');
                });

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

<?php echo $__env->make('frontend.default.auth.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/penastud/public_html/mart/resources/views/frontend/default/auth/login.blade.php ENDPATH**/ ?>