Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/vapecompany/demo.vapecompany.com.bd/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <!-- ============================================================== --> <!-- Page wrapper --> <!-- ============================================================== --> <div class="page-wrapper"> <!-- ============================================================== --> <!-- Bread crumb and right sidebar toggle --> <!-- ============================================================== --> <div class="page-breadcrumb"> <div class="row"> <div class="col-5 align-self-center"> <h4 class="page-title">Change Password</h4> <div class="d-flex align-items-center"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#">User</a></li> <li class="breadcrumb-item active" aria-current="page">Change Password</li> </ol> </nav> </div> </div> </div> </div> <!-- ============================================================== --> <!-- End Bread crumb and right sidebar toggle --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Container fluid --> <!-- ============================================================== --> <div class="container-fluid"> <!-- ============================================================== --> <!-- Start Page Content --> <!-- ============================================================== --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <form id="addBrand"> <?php echo csrf_field(); ?> <h4 class="card-title">Change Password</h4> <?php echo $__env->make('backend.layout.verror_message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="form-group row"> <label for="com1" class="col-sm-3 text-right control-label col-form-label">New Password</label> <div class="col-sm-6"> <input name="password" type="password" class="form-control" id="password" placeholder="New Password"> <input name="user_id" type="hidden" value="<?php echo e($id); ?>"> </div> </div> <div class="form-group mb-0 text-right"> <button type="submit" class="btn btn-info waves-effect waves-light">Update</button> </div> </form> </div> </div> </div> </div> <!-- ============================================================== --> <!-- End PAge Content --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Right sidebar --> <!-- ============================================================== --> <!-- .right-sidebar --> <!-- ============================================================== --> <!-- End Right sidebar --> <!-- ============================================================== --> </div> <!-- ============================================================== --> <!-- End Container fluid --> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script src="<?php echo e(url('/public/backend/js/jquery.validate.min.js')); ?>"></script> <script> jQuery(document).ready(function(){ $("#addBrand").validate({ rules: { password: { required: true, maxlength: 150, }, }, submitHandler: submitForm }); function submitForm() { var data = $("#addBrand").serialize(); $.ajax({ type : 'POST', url : "<?php echo e(url('admin/change_password')); ?>", data : data, dataType : 'json', success : function (data) { //console.log(data); if(data.errors=='0'){ $('.alert-success').show(); $('.alert-danger').hide(); $('.alert-success').append('<p>'+data.success+'</p>'); $("#addBrand").get(0).reset(); window.location="<?php echo e(url('admin/user_list')); ?>"; }else{ var val=""; $.each(data.errors, function(key, value){ $('.alert-danger').show(); $('.alert-success').hide(); val+= '<p>'+value+'</p>'; }); $('.alert-danger').html(val); } },error: function(response) { //console.log(response); } }); return false; } }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('backend.layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/role/change_password.blade.php ENDPATH**/ ?>