<?php $__env->startSection('title', translate('Settings')); ?>
<?php $__env->startSection('breadcrumbs', Breadcrumbs::render('workspace.settings.withdrawal')); ?>
<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('themes.basic.workspace.settings.includes.tabs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="row g-3">
        <div class="col-lg-6">
            <div class="dashboard-card card-v h-100">
                <div class="form-section">
                    <h5 class="mb-0"><?php echo e(translate('Withdrawal Details')); ?></h5>
                </div>
                <form action="<?php echo e(route('workspace.settings.withdrawal.update')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(translate('Withdrawal Method')); ?></label>
                        <select name="withdrawal_method" class="form-select form-select-md">
                            <option value="">--</option>
                            <?php $__currentLoopData = $withdrawalMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $withdrawalMethod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($withdrawalMethod->id); ?>" <?php if($withdrawalMethod->id == $user->withdrawal_method_id): echo 'selected'; endif; ?>>
                                    <?php echo e($withdrawalMethod->name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?php echo e(translate('Withdrawal Account')); ?></label>
                        <textarea type="text" name="withdrawal_account" class="form-control" rows="5"><?php echo e($user->withdrawal_account); ?></textarea>
                    </div>
                    <button class="btn btn-primary btn-md"><?php echo e(translate('Save Changes')); ?></button>
                </form>
            </div>
        </div>
        <div class="col-lg-6">
            <div class="dashboard-card card-v h-100">
                <div class="form-section">
                    <h5 class="mb-0"><?php echo e(translate('Withdrawal Methods')); ?></h5>
                </div>
                <div class="accordion dashboard-accordion" id="accordion">
                    <?php $__currentLoopData = $withdrawalMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $withdrawalMethod): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="accordion-item">
                            <h2 class="accordion-header">
                                <button class="accordion-button p-4 collapsed" type="button" data-bs-toggle="collapse"
                                    data-bs-target="#collapse<?php echo e($withdrawalMethod->id); ?>" aria-expanded="false"
                                    aria-controls="collapse<?php echo e($withdrawalMethod->id); ?>">
                                    <span><?php echo e($withdrawalMethod->name); ?></span>
                                </button>
                            </h2>
                            <div id="collapse<?php echo e($withdrawalMethod->id); ?>" class="accordion-collapse collapse"
                                data-bs-parent="#accordion">
                                <div class="accordion-body p-4">
                                    <h6 class="m-0">
                                        <span><?php echo e(translate('Minimum Withdrawal Amount')); ?> :</span>
                                        <strong><?php echo e(getAmount($withdrawalMethod->minimum)); ?></strong>
                                    </h6>
                                    <?php if($withdrawalMethod->description): ?>
                                        <div class="mt-3">
                                            <?php echo $withdrawalMethod->description; ?>

                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('themes.basic.workspace.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gxramdau/public_html/resources/views/themes/basic/workspace/settings/withdrawal.blade.php ENDPATH**/ ?>