
<?php $__env->startSection('content'); ?>
    <div class="page-container">

        <div class="page-title-head d-flex align-items-sm-center flex-sm-row flex-column gap-2">
            <div class="flex-grow-1">
                <h4 class="fs-18 fw-semibold mb-0"><?php echo e($title); ?></h4>
            </div>

            <div class="text-end">
                <?php echo $__env->make('dashboard.user.layouts.components.breadcrumbs', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>
        </div>

        <div class="row">
            <?php echo $__env->make('dashboard.admin.user.components.account_options_and_status', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            <div class="col-lg-12">

                <?php echo $__env->make('partials.validation_message', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('admin.user.account.setting.update', $user->uuid)); ?>" method="post">
                            <?php echo csrf_field(); ?>
                            <!-- Account State -->
                            <div class="mb-3">
                                <label for="example-select" class="form-label">Account State</label>
                                <select id="example-select" name="account_state" class="form-select">
                                    <?php $__currentLoopData = $userAccountStates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $userAccountState): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($userAccountState->value); ?>"
                                            <?php echo e($user->account_state->value == $userAccountState->value ? 'selected' : ''); ?>>
                                            <?php echo e($userAccountState->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <small class="text-muted d-block">Frozen account users cannot make
                                    transfers</small>
                                <small class="text-muted d-block">Disabled users cannot login</small>
                                <small class="text-muted d-block">KYC users will be unable to make
                                    withdrawals</small>
                            </div>

                            <!-- Message -->
                            <div class="mb-3">
                                <div class="mb-3">
                                    <label for="account_state_reason" class="form-label">Message</label>
                                    <textarea id="account_state_reason" name="account_state_reason" class="form-control" placeholder="Enter message"><?php echo e($user->account_state_reason); ?></textarea>
                                </div>
                            </div>

                            <div class="text-end">
                                <button type="submit" class="btn btn-primary">Save</button>
                            </div>
                        </form>
                    </div><!-- end card-body -->
                </div><!-- end card -->
            </div>
            <!-- end col -->
        </div>
        <!-- end row -->

    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.admin.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v6.0\resources\views/dashboard/admin/user/account_setting/index.blade.php ENDPATH**/ ?>