<?php if (isset($component)) { $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\MasterLayout::class, ['assets' => $assets ?? []]); ?>
<?php $component->withName('master-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div>
        <?php $id = $id ?? null;?>
        <?php echo Form::open(['route' => ['passwordchnage'], 'method' => 'post', 'id' => 'chnagepassword_form']); ?>

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title"><?php echo e($pageTitle); ?></h4>
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="new-user-info">
                            <div class="row">

                                <div class="form-group col-md-12">
                                    <?php echo e(Form::label('old_password', __('message.old_password').' <span class="text-danger">*</span>',['class' => 'form-control-label'], false )); ?>

                                    <div class="input-group">
                                        <?php echo e(Form::password('old_password', ['class' => 'form-control', 'placeholder' => __('message.old_password'), 'id' => 'password','required'])); ?>

                                        <div class="input-group-append">
                                            <span class="input-group-text hide-show-password" style="cursor: pointer;">
                                                <i class="fas fa-eye-slash"></i>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group col-md-12">
                                    <?php echo e(Form::label('new_password', __('message.new_password').' <span class="text-danger">*</span>',['class' => 'form-control-label'], false )); ?>

                                    <div class="input-group">
                                        <?php echo e(Form::password('new_password', ['class' => 'form-control', 'placeholder' => __('message.new_password'), 'id' => 'new_password','required'])); ?>

                                        <div class="input-group-append">
                                            <span class="input-group-text hide-show-password" style="cursor: pointer;">
                                                <i class="fas fa-eye-slash"></i>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group col-md-12">
                                    <?php echo e(Form::label('confirm_password', __('message.confirm_password').' <span class="text-danger">*</span>',['class' => 'form-control-label'], false )); ?>

                                    <div class="input-group">
                                        <?php echo e(Form::password('confirm_password', ['class' => 'form-control', 'placeholder' => __('message.confirm_password'), 'id' => 'confirm_password','required'])); ?>

                                        <div class="input-group-append">
                                            <span class="input-group-text hide-show-password" style="cursor: pointer;">
                                                <i class="fas fa-eye-slash"></i>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php echo e(Form::submit( __('message.save'), ['class'=>'btn btn-primary  btn-xl btn-block'])); ?>

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

    </div>
    <?php $__env->startSection('bottom_script'); ?>
        <?php echo \Illuminate\View\Factory::parentPlaceholder('bottom_script'); ?>
        <script>
            $(document).ready(function() {
                $('.hide-show-password').on('click', function() {
                    var eyeIcon = $(this).find('i');
                    var passwordInput = $(this).closest('.input-group').find('input');

                    var passwordFieldType = passwordInput.attr('type');
                    if (passwordFieldType === 'password') {
                        passwordInput.attr('type', 'text');
                        eyeIcon.removeClass('fa-eye-slash').addClass('fa-eye');
                    } else {
                        passwordInput.attr('type', 'password');
                        eyeIcon.removeClass('fa-eye').addClass('fa-eye-slash');
                    }
                });
                formValidation("#chnagepassword_form", {
                        old_password: { required: true },
                        new_password: { required: true },
                        confirm_password: { required: true },
                    }, {
                        old_password: { required: "<?php echo e(__('message.please_enter_old_password')); ?>" },
                        new_password: { required: "<?php echo e(__('message.please_enter_new_password')); ?>" },
                        confirm_password: { required: "<?php echo e(__('message.please_enter_confirm_password')); ?>" },
                });
            });
        </script>
    <?php $__env->stopSection(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23)): ?>
<?php $component = $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23; ?>
<?php unset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23); ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/mxunzo.mimeld.com/resources/views/clientside/changepassword.blade.php ENDPATH**/ ?>