<?php $__env->startSection('page_title'); ?>
    <?php echo e(__('admin::app.sessions.login.title')); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="panel">
        <div class="panel-body">

            <div class="form-container">
                <h1><?php echo e(__('admin::app.sessions.login.welcome')); ?></h1>

                <form method="POST" action="<?php echo e(route('admin.session.store')); ?>" @submit.prevent="$root.onSubmit">
                    <?php echo view_render_event('admin.sessions.login.form_controls.before'); ?>


                    <?php echo csrf_field(); ?>

                    <div class="form-group" :class="[errors.has('email') ? 'has-error' : '']">
                        <label for="email"><?php echo e(__('admin::app.sessions.login.email')); ?></label>

                        <input
                            type="text"
                            name="email"
                            class="control"
                            id="email"
                            v-validate.disable="'required|email'"
                            data-vv-as="&quot;<?php echo e(__('admin::app.sessions.login.email')); ?>&quot;"
                            />

                        <span class="control-error" v-if="errors.has('email')">
                            {{ errors.first('email') }}
                        </span>
                    </div>

                    <div class="form-group" :class="[errors.has('password') ? 'has-error' : '']">
                        <label for="password"><?php echo e(__('admin::app.sessions.login.password')); ?></label>

                        <input
                            type="password"
                            name="password"
                            class="control"
                            id="password"
                            v-validate.disable="'required|min:6'"
                            data-vv-as="&quot;<?php echo e(__('admin::app.sessions.login.password')); ?>&quot;"
                        />

                        <span class="control-error" v-if="errors.has('password')">
                            {{ errors.first('password') }}
                        </span>
                    </div>

                    <?php echo view_render_event('admin.sessions.login.form_controls.after'); ?>


                    <a href="<?php echo e(route('admin.forgot_password.create')); ?>"><?php echo e(__('admin::app.sessions.login.forgot-password')); ?></a>

                    <div class="button-group">
                        <?php echo view_render_event('admin.sessions.login.form_buttons.before'); ?>


                        <button type="submit" class="btn btn-xl btn-primary">
                            <?php echo e(__('admin::app.sessions.login.login')); ?>

                        </button>

                        <?php echo view_render_event('admin.sessions.login.form_buttons.after'); ?>

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

<?php $__env->startPush('scripts'); ?>
    <script>
        $(() => {
            $('input').keyup(({target}) => {
                if ($(target).parent('.has-error').length) {
                    $(target).parent('.has-error').addClass('hide-error');
                }
            });

            $('button').click(() => {
                $('.hide-error').removeClass('hide-error');
            });

            $(":input[name=email]").focus();
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin::layouts.anonymous-master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\laravel-crm\packages\Webkul\Admin\src/resources/views/sessions/login.blade.php ENDPATH**/ ?>