<?php $__env->startSection('content'); ?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-12 ">
                    <div class="card radius-10">
                        <div class="card-header">

                            <h4>Settings </h4>

                        </div>
                        <div class="card-body">
                            <form action="<?php echo e(url('manager/change-password')); ?>" method="post">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="id" value="<?php echo e(Auth::guard('affliate')->id()); ?>">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <h3>Change Password</h3>
                                    </div>
                                    <div class="col-lg-4">
                                        <label class="form-label">New Password</label>
                                        <input class="form-control" type="" name="password">

                                    </div>
                                    <div class="col-lg-4">
                                        <label class="form-label">Confirm Password</label>

                                        <input class="form-control" type="" name="confirm_password">
                                    </div>
                                    <div class="col-lg-4">
                                        <button class="btn btn-dark " style="margin-top: 33px">Change</button>


                                    </div>
                                </div>
                            </form>
                            <form action="<?php echo e(url('manager/update-settings')); ?>" method="post"
                                enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="id" value="<?php echo e(Auth::guard('affliate')->id()); ?>">
                                <div class="row mt-5">
                                    <div class="col-lg-6">
                                        <h3>Edit Personal Information</h3>
                                    </div>

                                    <div class="col-lg-12">
                                        <label class="form-label">Name</label>
                                        <input class="form-control" type="" value="<?php echo e($data->name); ?>" name="name">

                                    </div>
                                    <div class="col-lg-12">
                                        <label class="form-label">Email</label>

                                        <input class="form-control" type="" value="<?php echo e($data->email); ?>" name="email">
                                    </div>

                                    <div class="col-lg-12">
                                        <label class="form-label">Skype</label>

                                        <input class="form-control" type="" value="<?php echo e($data->skype); ?>" name="skype">
                                    </div>
                                    <div class="col-lg-12">
                                        <label class="form-label">Address</label>

                                        <input class="form-control" type="" value="<?php echo e($data->address); ?>" name="address">
                                    </div>
                                    <div class="col-lg-12">
                                        <label class="form-label">Payment Method</label>

                                        <select class="form-control" type="" value="<?php echo e($data->payment_method); ?>"
                                            name="payment_method">
                                            <?php $__currentLoopData = $payment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pay): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($pay->name); ?>" <?php echo e(($data->payment_method==$pay->name)?'selected':''); ?>><?php echo e($pay->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            

                                        </select>
                                    </div>
                                    <div class="col-lg-12">
                                        <label class="form-label">Payment Details</label>

                                        <textarea class="form-control" type="" value="" name="payment_description"><?php echo e($data->payment_description); ?></textarea>

                                    </div>
                                    <div class="col-lg-6 mt-2">
                                        <label class="form-label">Photo</label>

                                        <input class="form-control" type="file" name="photo">
                                    </div>
                                    <div class="col-lg-6 mt-2">
                                        <input type="hidden" name="hidden_img" value="<?php echo e($data->photo); ?>"></input>
                                        <a href="<?php echo e(asset('uploads')); ?>/<?php echo e($data->photo); ?>" target="_blank"><img
                                                src="<?php echo e(asset('uploads')); ?>/<?php echo e($data->photo); ?>" width="100"
                                                height="100"></a>
                                    </div>
                                    <div class="col-lg-6">
                                        <button class="btn btn-success btn-block" style="margin-top: 33px">Save
                                            Changes</button>


                                    </div>

                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <script type="text/javascript">
 <?php if(Session::has('success')): ?>
            Swal.fire('Success','<?php echo e(Session::get('success')); ?>','success');
        <?php endif; ?>
        <?php if(Session::has('error')): ?>
            Swal.fire('Error','<?php echo e(Session::get('error')); ?>','error');
                
            <?php endif; ?>
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('affiliate.layout.affiliate-dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/admin/aff.cpalider.com/backend/resources/views/affiliate/settings.blade.php ENDPATH**/ ?>