<?php $__env->startSection('title', __('User Management')); ?>

<?php $__env->startSection('content'); ?>
    <div class="card user-screen">
        <div class="card-body">
            <div class="text-center">
                <h3 class="card-title font-weight-bold"><?php echo e(__('string.user.change-password.title')); ?></h3>
                <p><?php echo e(__('string.user.change-password.description')); ?></p>
            </div>
            <!--col-->
            <div class="row mt-4">
                <div class="col-sm-7 mx-auto">
                    <?php echo Form::open(['url' => route('admin.user.change-password')]); ?>

                    <div class="form-group row">
                        <label class="font-weight-bold col-sm-2 col-md-3 col-form-label">
                            <?php echo e(__('string.user.change-password.label.user-id')); ?>

                        </label>
                        <div class="col-sm-10 col-md-9">
                            <?php echo e(Form::text('username', $user->username,
                                [
                                    'class' => 'form-control', 'readonly' => 'true',
                                ]
                            )); ?>

                            <span class="text-danger danger-helper"><?php echo e($errors->first('username') ?? ''); ?></span>
                        </div>
                    </div>
                    
                    <div class="form-group row">
                        <label class="font-weight-bold col-sm-2 col-md-3 col-form-label">
                            <?php echo e(__('string.user.change-password.label.user-name')); ?>

                        </label>
                        <div class="col-sm-10 col-md-9">
                            <?php echo e(Form::text('username', $user->name,
                                [
                                    'class' => 'form-control', 'readonly' => 'true',
                                ]
                            )); ?>

                            <span class="text-danger danger-helper"><?php echo e($errors->first('username') ?? ''); ?></span>
                        </div>
                    </div>
                    
                    <div class="form-group row">
                        <label class="font-weight-bold col-sm-2 col-md-3 col-form-label">
                            <?php echo e(__('string.user.change-password.label.current-password')); ?>

                            <span class="label-required">*</span>
                        </label>
                        <div class="col-sm-10 col-md-9">
                            <?php echo e(Form::text('current_password', null,
                                [
                                    'class' => ['form-control', $errors->has('current_password') ? 'is-invalid' : ''] ,
                                    'placeholder' => __('string.user.change-password.placeholder.current-password'),
                                ]
                            )); ?>

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

                            </span>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="font-weight-bold col-sm-2 col-md-3 col-form-label">
                            <?php echo e(__('string.user.change-password.label.new-password')); ?>

                            <span class="label-required">*</span>
                        </label>
                        <div class="col-sm-10 col-md-9">
                            <?php echo e(Form::text('new_password', null,
                                [
                                    'class' => ['form-control', $errors->has('new_password') ? 'is-invalid' : ''] ,
                                    'placeholder' => __('string.user.change-password.placeholder.new-password'),
                                ]
                            )); ?>

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

                    <div class="form-group row">
                        <label class="font-weight-bold col-sm-2 col-md-3 col-form-label">
                            <?php echo e(__('string.user.change-password.label.new-password-confirm')); ?>

                            <span class="label-required">*</span>
                        </label>
                        <div class="col-sm-10 col-md-9">
                            <?php echo e(Form::text('new_password_confirm', null,
                                [
                                'class' => ['form-control', $errors->has('new_password_confirm') ? 'is-invalid' : ''] ,
                                'placeholder' => __('string.user.change-password.placeholder.new-password-confirm'),
                                ]
                            )); ?>

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

                            </span>
                        </div>
                    </div>

                    <div class="form-group float-right">
                        <?php echo e(Form::button(__('string.user.button.update'),
                            [
                                'class' => 'btn btn-success ml-3 update-password',
                            ]
                        )); ?>

                        <a class="btn btn-danger btn-close" href=<?php echo e(route('admin.user.index')); ?>>
                            <?php echo e(__('string.create_user.cancel')); ?>

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

                </div>
            </div>
            <!--row-->
        </div>
        <!--card-body-->
    </div>
    <!--card-->
<?php $__env->stopSection(); ?>

<?php $__env->startPush('after-scripts'); ?>
    <script src="<?php echo e(mix('js/change_password.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/cc-faceeye-web/resources/views/backend/user/change_password.blade.php ENDPATH**/ ?>