

<?php $__env->startSection('content'); ?>
<div class="main-panel">
    <div class="content">
        <div class="container-fluid">
            <form action="<?php echo e(route('profile.update', $data->id)); ?>" method="POST" enctype="multipart/form-data" onsubmit="return confirm('Apakah Anda Yakin Ingin Reset Password?');">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PATCH'); ?>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">RESET PASSWORD</h4>
                            </div>
                            <div class="card-body">
                                <div class="form-group">
                                    <label>Username: </label>
                                    <input value="<?php echo e($data->name); ?>" type="text" class="form-control" id="username" name="username" placeholder="Masukkan Judul" disabled>
                                </div>


                                <div class="card-header" style="border: 1px solid #f2f2f2;">
                                    <div class="form-group">
                                        <label>Password lama: </label>
                                        <input required type="text" class="form-control" id="password_lama" name="password_lama" placeholder="Masukkan Password" required>
                                    </div>
                                    <?php if(session('error')): ?>
                                        <div class="alert alert-danger" id="error-alert">
                                            <?php echo e(session('error')); ?>

                                        </div>
                                        <script>
                                            setTimeout(function() {
                                                document.getElementById('error-alert').style.display = 'none';
                                            }, 3000);
                                        </script>
                                    <?php endif; ?>

                                    <div class="form-group">
                                        <label>Password Baru</label>
                                        <input required type="text" class="form-control" id="password_baru" name="password_baru" placeholder="Masukkan Password Baru" pattern="(?=.*\d)(?=.*[a-zA-Z]).{8,}" title="HARUS BERISI SETIDAKNYA 8 HURUF DAN ANGKA">
                                    </div>

                                </div>
                            </div>

                            <div class="card-footer d-flex justify-content-between">
                                <button type="button" class="btn btn-primary">
                                    <a class="text-decoration-none text-white" href="/admin/dashboard" style="text-decoration: none;">Back</a>
                                </button>
                                <button type="submit" class="btn btn-danger">RESET</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\ROED\2025\UPTpasar_laravel\website\upt\resources\views/admin/profile/profile.blade.php ENDPATH**/ ?>