
<?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 if (isset($component)) { $__componentOriginalb2c223f2cabdcb0c6da76bfac943142c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.breadcrumbs'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumbs)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c)): ?>
<?php $attributes = $__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c; ?>
<?php unset($__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb2c223f2cabdcb0c6da76bfac943142c)): ?>
<?php $component = $__componentOriginalb2c223f2cabdcb0c6da76bfac943142c; ?>
<?php unset($__componentOriginalb2c223f2cabdcb0c6da76bfac943142c); ?>
<?php endif; ?>
            </div>
        </div>

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

                <?php if (isset($component)) { $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                    <?php $__env->slot('header'); ?>
                        User <?php echo e($title); ?> Management
                    <?php $__env->endSlot(); ?>

                    <form action="<?php echo e(route('admin.user.account_state.store', $user->uuid)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PATCH'); ?>

                        <?php if (isset($component)) { $__componentOriginalcefc572cf950a78f0020a7e3b46f0442 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcefc572cf950a78f0020a7e3b46f0442 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.form-select','data' => ['name' => 'account_state','id' => 'account_state','label' => 'Account State','class' => 'col-md-12 mb-3','value' => ''.e(old('account_state', $user->account_state)).'','type' => 'select','options' => config('setting.accountStates'),'formText' => 'Description: '.e($user->account_state->description()).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.form-select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'account_state','id' => 'account_state','label' => 'Account State','class' => 'col-md-12 mb-3','value' => ''.e(old('account_state', $user->account_state)).'','type' => 'select','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(config('setting.accountStates')),'formText' => 'Description: '.e($user->account_state->description()).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcefc572cf950a78f0020a7e3b46f0442)): ?>
<?php $attributes = $__attributesOriginalcefc572cf950a78f0020a7e3b46f0442; ?>
<?php unset($__attributesOriginalcefc572cf950a78f0020a7e3b46f0442); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcefc572cf950a78f0020a7e3b46f0442)): ?>
<?php $component = $__componentOriginalcefc572cf950a78f0020a7e3b46f0442; ?>
<?php unset($__componentOriginalcefc572cf950a78f0020a7e3b46f0442); ?>
<?php endif; ?>

                        <?php if (isset($component)) { $__componentOriginal377af9bacdfb9429d949663393821085 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal377af9bacdfb9429d949663393821085 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.form-input','data' => ['name' => 'account_state_message','value' => ''.e(old('account_state_message', $user->account_state_message)).'','type' => 'textarea','label' => 'Account State Message','class' => 'col-md-12 mb-3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.form-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'account_state_message','value' => ''.e(old('account_state_message', $user->account_state_message)).'','type' => 'textarea','label' => 'Account State Message','class' => 'col-md-12 mb-3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $attributes = $__attributesOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__attributesOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $component = $__componentOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__componentOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>

                        <?php if (isset($component)) { $__componentOriginalc89c72acc5163ac02c8deb87bc5ee542 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.submit-and-back-button','data' => ['href' => ''.e(route('admin.user.show', $user->uuid)).'','back' => 'Back to User','submit' => 'Save']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.submit-and-back-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('admin.user.show', $user->uuid)).'','back' => 'Back to User','submit' => 'Save']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542)): ?>
<?php $attributes = $__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542; ?>
<?php unset($__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc89c72acc5163ac02c8deb87bc5ee542)): ?>
<?php $component = $__componentOriginalc89c72acc5163ac02c8deb87bc5ee542; ?>
<?php unset($__componentOriginalc89c72acc5163ac02c8deb87bc5ee542); ?>
<?php endif; ?>
                    </form>

                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $attributes = $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $component = $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>

            </div>

            <div class="col-md-12">
                <?php if (isset($component)) { $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                    <?php $__env->slot('header'); ?>
                        Account States Explanation
                    <?php $__env->endSlot(); ?>

                    <h4>Active</h4>
                    <ul>
                        <li><strong>Description:</strong> The account is fully operational.</li>
                        <li><strong>User Can:</strong> Log in, deposit, withdraw, transfer, and perform all banking
                            activities.
                        </li>
                        <li><strong>Admin Can:</strong> Monitor activity, freeze, suspend, or mark dormant if inactive.</li>
                    </ul>

                    <h4>Dormant</h4>
                    <ul>
                        <li><strong>Description:</strong> The account has been inactive for a set period.</li>
                        <li><strong>User Can:</strong> Log in and view account details, but cannot make withdrawals or
                            transfers
                            until reactivated.</li>
                        <li><strong>Admin Can:</strong> Reactivate the account after due process or verification.</li>
                    </ul>

                    <h4>Restricted</h4>
                    <ul>
                        <li><strong>Description:</strong> The account has limited access, often due to incomplete
                            documentation,
                            suspicious activity, or policy flags.</li>
                        <li><strong>User Can:</strong> Log in and view balance/history.</li>
                        <li><strong>User Cannot:</strong> Withdraw or transfer funds.</li>
                        <li><strong>Admin Can:</strong> Remove restriction after verification or escalate to
                            frozen/suspended if
                            needed.</li>
                    </ul>

                    <h4>Frozen</h4>
                    <ul>
                        <li><strong>Description:</strong> The account is temporarily locked due to investigations,
                            compliance
                            checks, or suspicious activity.</li>
                        <li><strong>User Can:</strong> Log in and view balance/history.</li>
                        <li><strong>User Cannot:</strong> Deposit, withdraw, or transfer.</li>
                        <li><strong>Admin Can:</strong> Unfreeze after resolution or escalate to suspension/closure.</li>
                    </ul>

                    <h4>Closed</h4>
                    <ul>
                        <li><strong>Description:</strong> The account has been permanently shut down.</li>
                        <li><strong>User Cannot:</strong> Log in or perform any actions.</li>
                        <li><strong>Admin Can:</strong> Reopen only under exceptional conditions (if policy allows).</li>
                    </ul>

                    <h4>Pending Verification</h4>
                    <ul>
                        <li><strong>Description:</strong> The account has been created but is awaiting KYC/identity
                            verification.</li>
                        <li><strong>User Can:</strong> Log in and view profile but cannot perform financial transactions.
                        </li>
                        <li><strong>Admin Can:</strong> Approve/reject verification or keep the account restricted until
                            documents are received.</li>
                    </ul>

                    <h4>Suspended</h4>
                    <ul>
                        <li><strong>Description:</strong> The account has been suspended due to policy violations,
                            regulatory
                            issues, or fraud detection.</li>
                        <li><strong>User Cannot:</strong> Log in or access account.</li>
                        <li><strong>Admin Can:</strong> Reinstate account after resolution or permanently close it.</li>
                    </ul>

                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $attributes = $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $component = $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
            </div>

            <!-- end col -->
        </div>
        <!-- end row -->

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

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