
<?php $__env->startSection('title', 'Reset Password'); ?>
<?php $__env->startSection('content'); ?>
<div class="uk-section-muted uk-flex uk-flex-middle uk-animation-fade" uk-height-viewport>
    <div class="uk-width-1-1">
        <div class="uk-container">
            <div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid>
                <div class="uk-width-1-1@m">
                    <div class="uk-margin uk-width-large uk-margin-auto uk-card uk-card-default uk-card-body uk-box-shadow-medium auth-form">
                        <h3 class="uk-card-title uk-text-center"><img class="auth-logo" alt="" src="<?php echo e(url('images/listing-llama-logo.png')); ?>"></h3>
                        <p class="uk-text-center uk-margin-remove">Create your new password below for login!</p>
                        <?php echo e(Form::open(array('route' => 'reset.password.post','method' => 'POST','id' => 'reset_form'))); ?>

                        <?php echo e(Form::hidden('token',$token)); ?>

                        <?php echo csrf_field(); ?>
                            <?php echo $__env->make('partials.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            <div class="uk-margin">
                                <div class="uk-inline uk-width-1-1">
                                    <span class="uk-form-icon"><i class="fas fa-user"></i></span>
                                    <?php echo e(Form::email('email', ($email ?? old('email')),['class' => 'uk-input uk-form-large email-readonly','autocomplete' => 'email', 'id' => 'email','readonly'])); ?>

                                </div>
                                <span class="uk-text-danger email-error"></span>
                            </div>
                            <div class="uk-margin">
                              <div class="uk-inline uk-width-1-1">
                                    <span class="uk-form-icon"><i class="fas fa-lock"></i></span>
                                      <?php echo e(Form::password('password',['class' => 'uk-input uk-form-large password','autocomplete' => 'off','id' => 'password', 'placeholder' => 'New Password *'])); ?>

                                </div>
                                <span class="uk-text-danger password-error"></span>
                            </div>
                            <div class="uk-margin">
                              <div class="uk-inline uk-width-1-1">
                                    <span class="uk-form-icon"><i class="fas fa-lock"></i></span>
                                      <?php echo e(Form::password('password_confirmation',['class' => 'uk-input uk-form-large','autocomplete' => 'off', 'placeholder' => 'Confirm Password *'])); ?>

                                </div>
                                <span class="uk-text-danger password-confirmation-error"></span>
                            </div>
                            <div class="uk-text-right">
                                <a href="<?php echo e(url('login')); ?>">Back to Login</a>
                            </div>
                            <div class="uk-margin">
                                <button type="submit" class="uk-button uk-button-primary uk-width-1-1 uk-button-large login-btn reset_passord_button" id="reset_passord_button">
                                  <?php echo e(__('Reset Password')); ?>

                                </button>
                            </div>
                        <?php echo e(Form::close()); ?>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer-script'); ?>
<script type="text/javascript">
    $("#reset_form").validate({
        errorClass: "uk-text-danger",
        rules: {
            email: {
                required: true,
                email: true
            },
            password: {
                required: true,
                minlength: 6,
            },
            password_confirmation: {
                required: true,
                minlength: 6,
                equalTo: "#password"
            }
        },
        messages: {
            email: {
                required: 'Please complete this required field.'
            },
            password: {
                required: 'Please complete this required field.'
            },
            password_confirmation: {
                required: 'Please complete this required field.'
            },
            
        },
        errorPlacement: function(error, element) {
            if (element.attr("name") == "email") {
                error.insertBefore('.email-error');
            }else if (element.attr("name") == "password") {
                error.insertBefore('.password-error');
            }else if (element.attr("name") == "password_confirmation") {
                error.insertBefore('.password-confirmation-error');
            }else {
                error.insertAfter(element);
            }
        },
        submitHandler: function(form) {
            $('#reset_passord_button').attr('disabled',true);
            form.submit();
        }
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.authapp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kelowna/public_html/listingllama.kelowna.website/resources/views/auth/passwords/reset.blade.php ENDPATH**/ ?>