

<?php $__env->startSection('panel'); ?>
    <div class="row gy-4">
        <div class="col-12">
            <div class="row gy-4">
                <div class="col-xxl-3 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '1','link' => 'admin.report.transaction','parameters' => ['username' => $user->username],'title' => 'Balance','icon' => 'las la-money-bill-wave-alt','value' => ''.e(showAmount($user->balance)).'','bg' => 'info','type' => '2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '1','link' => 'admin.report.transaction','parameters' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['username' => $user->username]),'title' => 'Balance','icon' => 'las la-money-bill-wave-alt','value' => ''.e(showAmount($user->balance)).'','bg' => 'info','type' => '2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '1','link' => 'admin.deposit.list','parameters' => ['username' => $user->username],'title' => 'Deposits','icon' => 'las la-wallet','value' => ''.e(showAmount($widget['total_deposit'])).'','bg' => 'success','type' => '2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '1','link' => 'admin.deposit.list','parameters' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['username' => $user->username]),'title' => 'Deposits','icon' => 'las la-wallet','value' => ''.e(showAmount($widget['total_deposit'])).'','bg' => 'success','type' => '2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>
                <div class="col-xxl-3 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '1','link' => 'admin.withdraw.data.all','parameters' => ['username' => $user->username],'title' => 'Withdrawals','icon' => 'la la-bank','value' => ''.e(showAmount($widget['total_withdrawn'])).'','bg' => '6','type' => '2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '1','link' => 'admin.withdraw.data.all','parameters' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['username' => $user->username]),'title' => 'Withdrawals','icon' => 'la la-bank','value' => ''.e(showAmount($widget['total_withdrawn'])).'','bg' => '6','type' => '2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '1','link' => 'admin.transfers.index','parameters' => ['username' => $user->username],'title' => 'Total Transferred','icon' => 'las la-exchange-alt','value' => ''.e(showAmount($widget['total_transferred'])).'','bg' => '17','type' => '2']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '1','link' => 'admin.transfers.index','parameters' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(['username' => $user->username]),'title' => 'Total Transferred','icon' => 'las la-exchange-alt','value' => ''.e(showAmount($widget['total_transferred'])).'','bg' => '17','type' => '2']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'primary','icon' => 'la la-money-bill','title' => 'Running FDR','value' => ''.e($widget['total_fdr']).'','link' => 'admin.fdr.index','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '2','color' => 'primary','icon' => 'la la-money-bill','title' => 'Running FDR','value' => ''.e($widget['total_fdr']).'','link' => 'admin.fdr.index','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'green','icon' => 'la la-box','title' => 'Running DPS','value' => ''.e($widget['total_dps']).'','link' => 'admin.dps.index','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '2','color' => 'green','icon' => 'la la-box','title' => 'Running DPS','value' => ''.e($widget['total_dps']).'','link' => 'admin.dps.index','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'warning','icon' => 'la la-hand-holding-usd','title' => 'Running Loan','value' => ''.e($widget['total_loan']).'','link' => 'admin.loan.running','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '2','color' => 'warning','icon' => 'la la-hand-holding-usd','title' => 'Running Loan','value' => ''.e($widget['total_loan']).'','link' => 'admin.loan.running','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'info','icon' => 'la la-user-friends','title' => 'Beneficiaries','value' => ''.e($widget['total_beneficiaries']).'','link' => 'admin.users.beneficiaries','parameters' => ''.e($user->id).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('widget'); ?>
<?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(['style' => '2','color' => 'info','icon' => 'la la-user-friends','title' => 'Beneficiaries','value' => ''.e($widget['total_beneficiaries']).'','link' => 'admin.users.beneficiaries','parameters' => ''.e($user->id).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $attributes = $__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__attributesOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9)): ?>
<?php $component = $__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9; ?>
<?php unset($__componentOriginal433d6a5be5b58ac8aa6a74031c6196f9); ?>
<?php endif; ?>
                </div>
            </div>
        </div>

        <div class="col-12">
            <div class="d-flex flex-wrap gap-3">
                <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.add.sub.balance')): ?>
                    <div class="flex-fill">
                        <button data-bs-toggle="modal" data-bs-target="#addSubModal"
                            class="btn btn--success btn--shadow w-100 btn-lg bal-btn" data-act="add">
                            <i class="las la-plus-circle"></i> <?php echo app('translator')->get('Balance'); ?>
                        </button>
                    </div>

                    <div class="flex-fill">
                        <button data-bs-toggle="modal" data-bs-target="#addSubModal"
                            class="btn btn--danger btn--shadow w-100 btn-lg bal-btn" data-act="sub">
                            <i class="las la-minus-circle"></i> <?php echo app('translator')->get('Balance'); ?>
                        </button>
                    </div>
                <?php endif; ?>

                <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.update')): ?>
                    <div class="flex-fill">
                        <button data-bs-toggle="modal" data-bs-target="#usernameChangeModal"
                            class="btn btn--info btn--shadow w-100 btn-lg">
                            <i class="las la-user-edit"></i> <?php echo app('translator')->get('Username'); ?>
                        </button>
                    </div>

                    <div class="flex-fill">
                        <button data-bs-toggle="modal" data-bs-target="#passwordChangeModal"
                            class="btn btn--dark btn--shadow w-100 btn-lg">
                            <i class="las la-key"></i> <?php echo app('translator')->get('Password'); ?>
                        </button>
                    </div>
                <?php endif; ?>

                <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.report.login.history')): ?>
                    <div class="flex-fill">
                        <a href="<?php echo e(route('admin.report.login.history')); ?>?search=<?php echo e($user->username); ?>"
                            class="btn btn--primary btn--shadow w-100 btn-lg">
                            <i class="las la-list-alt"></i><?php echo app('translator')->get('Logins'); ?>
                        </a>
                    </div>
                <?php endif; ?>

                <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.notification.log')): ?>
                    <div class="flex-fill">
                        <a href="<?php echo e(route('admin.users.notification.log', $user->id)); ?>"
                            class="btn btn--secondary btn--shadow w-100 btn-lg">
                            <i class="las la-bell"></i><?php echo app('translator')->get('Notifications'); ?>
                        </a>
                    </div>
                <?php endif; ?>

                <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.kyc.details')): ?>
                    <?php if($user->kyc_data): ?>
                        <div class="flex-fill">
                            <a href="<?php echo e(route('admin.users.kyc.details', $user->id)); ?>" target="_blank"
                                class="btn btn--dark btn--shadow w-100 btn-lg">
                                <i class="las la-user-check"></i><?php echo app('translator')->get('KYC Data'); ?>
                            </a>
                        </div>
                    <?php endif; ?>
                <?php endif; ?>

                <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.status')): ?>
                    <div class="flex-fill">
                        <?php if($user->status == Status::USER_ACTIVE): ?>
                            <button type="button" class="btn btn--warning btn--shadow w-100 btn-lg userStatus"
                                data-bs-toggle="modal" data-bs-target="#userStatusModal">
                                <i class="las la-ban"></i><?php echo app('translator')->get('Freeze Account'); ?>
                            </button>
                        <?php else: ?>
                            <button type="button" class="btn btn--success btn--shadow w-100 btn-lg userStatus"
                                data-bs-toggle="modal" data-bs-target="#userStatusModal">
                                <i class="las la-undo"></i><?php echo app('translator')->get('Unfreeze Account'); ?>
                            </button>
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>

        <div class="col-xl-3 col-lg-5 col-md-5">
            <div class="row gy-4">
                <div class="col-6 col-sm-6 col-md-12">
                    <div class="card">
                        <div class="card-header">
                            <div class="d-flex justify-content-center gap-3">
                                <h6>
                                    <?php if($user->ev): ?>
                                        <i class="la la-check-circle text--success"></i>
                                    <?php else: ?>
                                        <i class="la la-times-circle text--danger"></i>
                                    <?php endif; ?>
                                    <?php echo app('translator')->get('Email'); ?>
                                </h6>
                                <h6>
                                    <?php if($user->sv): ?>
                                        <i class="la la-check-circle text--success"></i>
                                    <?php else: ?>
                                        <i class="la la-times-circle text--danger"></i>
                                    <?php endif; ?>
                                    <?php echo app('translator')->get('Mobile'); ?>
                                </h6>
                                <h6>
                                    <?php if($user->kv): ?>
                                        <i class="la la-check-circle text--success"></i>
                                    <?php else: ?>
                                        <i class="la la-times-circle text--danger"></i>
                                    <?php endif; ?>
                                    <?php echo app('translator')->get('KYC'); ?>
                                </h6>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="account-holder">
                                <div class="account-holder__thumb">
                                    <img src="<?php echo e(getImage(getFilePath('userProfile') . '/' . $user->image, null, true)); ?>"
                                        alt="account-holder-image">
                                    <?php if(@gs('modules')->account_level && $user->accountLevel): ?>
                                        <div class="account-holder__level">
                                            <img
                                                src="<?php echo e(getImage(getFilePath('accountLevel') . '/' . $user->accountLevel?->icon, null, true)); ?>">
                                        </div>
                                    <?php endif; ?>
                                </div>
                                <?php if(@gs('modules')->account_level): ?>
                                    <div class="account-holder__content">
                                        <p class="account-holder__point">
                                            <span class="label"><?php echo app('translator')->get('Reward Points :'); ?></span>
                                            <span class="value">
                                                <?php echo e(showAmount($user->reward_point, 0, currencyFormat: false)); ?>

                                            </span>
                                        </p>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-6 col-sm-6 col-md-12">
                    <div class="card">
                        <div class="card-header">
                            <h5 class="card-title text-center"><?php echo app('translator')->get('Basic Information'); ?></h5>
                        </div>
                        <div class="card-body">
                            <div class="list-group list-group-flush">
                                <div class="list-group-item d-flex justify-content-between flex-column flex-wrap border-0 px-0">
                                    <small class="text-muted"><?php echo app('translator')->get('Username'); ?></small>
                                    <h6><?php echo e($user->username); ?></h6>
                                </div>

                                <div class="list-group-item d-flex justify-content-between flex-column flex-wrap border-0 px-0">
                                    <small class="text-muted"><?php echo app('translator')->get('Account Number'); ?></small>
                                    <h6><?php echo e($user->account_number); ?> </h6>
                                </div>

                                <div class="list-group-item d-flex justify-content-between flex-column flex-wrap border-0 px-0">
                                    <small class="text-muted"><?php echo app('translator')->get('Branch'); ?></small>
                                    <h6><?php echo e($user->branch->name ?? 'Online'); ?> </h6>
                                </div>

                                <?php if($user->referrer): ?>
                                    <div
                                        class="list-group-item d-flex justify-content-between flex-column flex-wrap border-0 px-0">
                                        <small class="text-muted"><?php echo app('translator')->get('Referred By'); ?></small>
                                        <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.detail')): ?>
                                            <a href="<?php echo e(route('admin.users.detail', $user->ref_by)); ?>">
                                                <h6 class="text--primary"><?php echo e($user->referrer->username); ?></h6>
                                            </a>
                                        <?php else: ?>
                                            <h6 class="text--primary"><?php echo e($user->referrer->username); ?></h6>
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>

                                <?php if($user->branch): ?>
                                    <div
                                        class="list-group-item d-flex justify-content-between flex-column flex-wrap border-0 px-0">
                                        <small class="text-muted"><?php echo app('translator')->get('Registered By'); ?></small>
                                        <h6><?php echo e($user->branchStaff->name); ?> </h6>
                                    </div>
                                <?php endif; ?>

                                <div class="list-group-item d-flex justify-content-between flex-column flex-wrap border-0 px-0">
                                    <small class="text-muted"><?php echo app('translator')->get('Joined On'); ?></small>
                                    <h6><?php echo e(showDateTime($user->created_at, 'd M Y, h:i A')); ?> </h6>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-xl-9 col-lg-7 col-md-7">
            <div class="card">
                <div class="card-header">
                    <h5 class="card-title mb-0"><?php echo app('translator')->get('Information of'); ?> <?php echo e($user->fullname); ?></h5>
                </div>
                <div class="card-body">
                    <form action="<?php echo e(route('admin.users.update', [$user->id])); ?>" method="POST"
                        enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('First Name'); ?></label>
                                    <input class="form-control" type="text" name="firstname" required
                                        value="<?php echo e($user->firstname); ?>">
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="form-control-label"><?php echo app('translator')->get('Last Name'); ?></label>
                                    <input class="form-control" type="text" name="lastname" required
                                        value="<?php echo e($user->lastname); ?>">
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Email'); ?></label>
                                    <input class="form-control" type="email" name="email"
                                        value="<?php echo e($user->email); ?>" required>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Mobile Number'); ?></label>
                                    <div class="input-group ">
                                        <span class="input-group-text mobile-code">+<?php echo e($user->dial_code); ?></span>
                                        <input type="number" name="mobile" value="<?php echo e($user->mobile); ?>" id="mobile"
                                            class="form-control checkUser" required>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('City'); ?></label>
                                    <input class="form-control" type="text" name="city"
                                        value="<?php echo e(@$user->city); ?>">
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('State'); ?></label>
                                    <input class="form-control" type="text" name="state"
                                        value="<?php echo e(@$user->state); ?>">
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('Zip/Postal'); ?></label>
                                    <input class="form-control" type="text" name="zip"
                                        value="<?php echo e(@$user->zip); ?>">
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="form-group ">
                                    <label class="required"><?php echo app('translator')->get('Country'); ?></label>
                                    <select name="country" class="form-control select2">
                                        <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option data-mobile_code="<?php echo e($country->dial_code); ?>"
                                                value="<?php echo e($key); ?>" <?php if($user->country_code == $key): echo 'selected'; endif; ?>>
                                                <?php echo e(__($country->country)); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>

                            <div class="col-md-12">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('Address'); ?></label>
                                    <input class="form-control" type="text" name="address"
                                        value="<?php echo e(@$user->address); ?>">
                                </div>
                            </div>

                            <div class="col-xl-3 col-md-6 col-12">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Email Verification'); ?></label>
                                    <input type="checkbox" data-width="100%" data-onstyle="-success"
                                        data-offstyle="-danger" data-bs-toggle="toggle" data-on="<?php echo app('translator')->get('Verified'); ?>"
                                        data-off="<?php echo app('translator')->get('Unverified'); ?>" name="ev"
                                        <?php if($user->ev): ?> checked <?php endif; ?>>
                                </div>
                            </div>

                            <div class="col-xl-3 col-md-6 col-12">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Mobile Verification'); ?></label>
                                    <input type="checkbox" data-width="100%" data-onstyle="-success"
                                        data-offstyle="-danger" data-bs-toggle="toggle" data-on="<?php echo app('translator')->get('Verified'); ?>"
                                        data-off="<?php echo app('translator')->get('Unverified'); ?>" name="sv"
                                        <?php if($user->sv): ?> checked <?php endif; ?>>
                                </div>
                            </div>
                            <div class="col-xl-3 col-12">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('2FA Verification'); ?> </label>
                                    <input type="checkbox" data-width="100%" data-height="50" data-onstyle="-success"
                                        data-offstyle="-danger" data-bs-toggle="toggle" data-on="<?php echo app('translator')->get('Enable'); ?>"
                                        data-off="<?php echo app('translator')->get('Disable'); ?>" name="ts"
                                        <?php if($user->ts): ?> checked <?php endif; ?>>
                                </div>
                            </div>
                            <div class="col-xl-3 col-12">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('KYC'); ?> </label>
                                    <input type="checkbox" data-width="100%" data-height="50" data-onstyle="-success"
                                        data-offstyle="-danger" data-bs-toggle="toggle" data-on="<?php echo app('translator')->get('Verified'); ?>"
                                        data-off="<?php echo app('translator')->get('Unverified'); ?>" name="kv"
                                        <?php if($user->kv == Status::KYC_VERIFIED): ?> checked <?php endif; ?>>
                                </div>
                            </div>
                            <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.update')): ?>
                                <div class="col-md-12">
                                    <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Save Changes'); ?>
                                    </button>
                                </div>
                            <?php endif; ?>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.add.sub.balance')): ?>
        
        <div id="addSubModal" class="modal fade" tabindex="-1" role="dialog">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title"><span class="type"></span> <span><?php echo app('translator')->get('Balance'); ?></span></h5>
                        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                            <i class="las la-times"></i>
                        </button>
                    </div>
                    <form action="<?php echo e(route('admin.users.add.sub.balance', $user->id)); ?>"
                        class="balanceAddSub disableSubmission" method="POST">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="act">
                        <div class="modal-body">
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Amount'); ?></label>
                                <div class="input-group">
                                    <input type="number" step="any" name="amount" class="form-control"
                                        placeholder="<?php echo app('translator')->get('Please provide positive amount'); ?>" required>
                                    <div class="input-group-text"><?php echo e(__(gs('cur_text'))); ?></div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Remark'); ?></label>
                                <textarea class="form-control" placeholder="<?php echo app('translator')->get('Remark'); ?>" name="remark" rows="4" required></textarea>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="submit" class="btn btn--primary h-45 w-100"><?php echo app('translator')->get('Submit'); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    <?php endif; ?>

    <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.update')): ?>
        
        <div id="usernameChangeModal" class="modal fade" tabindex="-1" role="dialog">
            <div class="modal-dialog modal-dialog-centered" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title"><?php echo app('translator')->get('Change Username'); ?> - <?php echo e($user->username); ?></h5>
                        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                            <i class="las la-times"></i>
                        </button>
                    </div>
                    <form action="<?php echo e(route('admin.users.username.update', $user->id)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="modal-body">
                            <div class="alert alert-info" role="alert">
                                <i class="las la-info-circle"></i>
                                <?php echo app('translator')->get('Username must be unique and can contain letters, numbers, underscores and hyphens.'); ?>
                            </div>
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Current Username'); ?></label>
                                <input type="text" class="form-control" value="<?php echo e($user->username); ?>" readonly disabled>
                            </div>
                            <div class="form-group">
                                <label><?php echo app('translator')->get('New Username'); ?> <span class="text-danger">*</span></label>
                                <input type="text" class="form-control" name="username" placeholder="<?php echo app('translator')->get('Enter new username'); ?>" required>
                                <small class="text-muted"><?php echo app('translator')->get('After change, user will need to login with this new username.'); ?></small>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn--secondary" data-bs-dismiss="modal"><?php echo app('translator')->get('Cancel'); ?></button>
                            <button type="submit" class="btn btn--primary"><?php echo app('translator')->get('Update Username'); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        
        <div id="passwordChangeModal" class="modal fade" tabindex="-1" role="dialog">
            <div class="modal-dialog modal-dialog-centered" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title"><?php echo app('translator')->get('Change Password'); ?> - <?php echo e($user->username); ?></h5>
                        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                            <i class="las la-times"></i>
                        </button>
                    </div>
                    <form action="<?php echo e(route('admin.users.password.update', $user->id)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="modal-body">
                            <div class="alert alert-info" role="alert">
                                <i class="las la-info-circle"></i>
                                <?php echo app('translator')->get('Password must be at least 6 characters long.'); ?>
                            </div>
                            <div class="form-group">
                                <label><?php echo app('translator')->get('New Password'); ?> <span class="text-danger">*</span></label>
                                <div class="input-group">
                                    <input type="password" class="form-control password-field" name="password" placeholder="<?php echo app('translator')->get('Enter new password'); ?>" required minlength="6">
                                    <button type="button" class="input-group-text toggle-password-btn">
                                        <i class="las la-eye"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Confirm Password'); ?> <span class="text-danger">*</span></label>
                                <div class="input-group">
                                    <input type="password" class="form-control password-field" name="password_confirmation" placeholder="<?php echo app('translator')->get('Confirm new password'); ?>" required minlength="6">
                                    <button type="button" class="input-group-text toggle-password-btn">
                                        <i class="las la-eye"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn--secondary" data-bs-dismiss="modal"><?php echo app('translator')->get('Cancel'); ?></button>
                            <button type="submit" class="btn btn--primary"><?php echo app('translator')->get('Update Password'); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    <?php endif; ?>

    <?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.status')): ?>
        <div id="userStatusModal" class="modal fade" tabindex="-1" role="dialog">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title">
                            <?php if($user->status == Status::USER_ACTIVE): ?>
                                <?php echo app('translator')->get('Ban Account'); ?>
                            <?php else: ?>
                                <?php echo app('translator')->get('Unban Account'); ?>
                            <?php endif; ?>
                        </h5>
                        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                            <i class="las la-times"></i>
                        </button>
                    </div>
                    <form action="<?php echo e(route('admin.users.status', $user->id)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="modal-body">
                            <?php if($user->status == Status::USER_ACTIVE): ?>
                                <h6 class="mb-2"><?php echo app('translator')->get('If you ban this account he/she won\'t able to access his/her dashboard.'); ?></h6>
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Reason'); ?></label>
                                    <textarea class="form-control" name="reason" rows="4" required></textarea>
                                </div>
                            <?php else: ?>
                                <p><span><?php echo app('translator')->get('Ban reason was'); ?>:</span></p>
                                <p><?php echo e($user->ban_reason); ?></p>
                                <h4 class="text-center mt-3"><?php echo app('translator')->get('Are you sure to unban this account?'); ?></h4>
                            <?php endif; ?>
                        </div>
                        <div class="modal-footer">
                            <?php if($user->status == Status::USER_ACTIVE): ?>
                                <button type="submit" class="btn btn--primary h-45 w-100"><?php echo app('translator')->get('Submit'); ?></button>
                            <?php else: ?>
                                <button type="button" class="btn btn--dark"
                                    data-bs-dismiss="modal"><?php echo app('translator')->get('No'); ?></button>
                                <button type="submit" class="btn btn--primary"><?php echo app('translator')->get('Yes'); ?></button>
                            <?php endif; ?>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php if (\Illuminate\Support\Facades\Blade::check('can', 'admin.users.login')): ?>
    <?php $__env->startPush('breadcrumb-plugins'); ?>
        <a href="<?php echo e(route('admin.users.login', $user->id)); ?>" target="_blank" class="btn btn-sm btn-outline--primary"><i
                class="las la-sign-in-alt"></i><?php echo app('translator')->get('Login as User'); ?></a>
    <?php $__env->stopPush(); ?>
<?php endif; ?>

<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            "use strict"

            $('.bal-btn').on('click', function() {
                $('.balanceAddSub')[0].reset();
                var act = $(this).data('act');
                $('#addSubModal').find('input[name=act]').val(act);
                if (act == 'add') {
                    $('.type').text('Add');
                } else {
                    $('.type').text('Subtract');
                }
            });

            let mobileElement = $('.mobile-code');
            $('select[name=country]').on('change', function() {
                mobileElement.text(`+${$('select[name=country] :selected').data('mobile_code')}`);
            });

            // Toggle password visibility
            $('.toggle-password-btn').on('click', function() {
                var input = $(this).closest('.input-group').find('.password-field');
                var icon = $(this).find('i');
                
                if (input.attr('type') === 'password') {
                    input.attr('type', 'text');
                    icon.removeClass('la-eye').addClass('la-eye-slash');
                } else {
                    input.attr('type', 'password');
                    icon.removeClass('la-eye-slash').addClass('la-eye');
                }
            });

            // Clear password form when modal is closed
            $('#passwordChangeModal').on('hidden.bs.modal', function () {
                $(this).find('form')[0].reset();
                $(this).find('.toggle-password-btn i').removeClass('la-eye-slash').addClass('la-eye');
                $(this).find('.password-field').attr('type', 'password');
            });

            // Clear username form when modal is closed
            $('#usernameChangeModal').on('hidden.bs.modal', function () {
                $(this).find('form')[0].reset();
            });

        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('style'); ?>
    <style>
        .account-holder {
            width: fit-content;
            margin-inline: auto;
        }

        .account-holder__thumb {
            --size: 180px;
            width: var(--size);
            height: var(--size);
            border-radius: 5px;
            position: relative;
        }

        .account-holder__thumb>img {
            width: 100%;
            height: 100%;
            border-radius: inherit;
            display: block;
            object-fit: cover;
        }

        .account-holder__level {
            --size: 46px;
            width: var(--size);
            height: var(--size);
            border-radius: 50%;
            overflow: hidden;
            position: absolute;
            top: calc(var(--size) * -0.25);
            right: calc(var(--size) * -0.25);
            border: 1px solid rgba(140, 140, 140, 0.125);
            box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
        }

        .account-holder__level img {
            width: 100%;
            height: 100%;
            border-radius: inherit;
            display: block;
            object-fit: cover;
        }

        .account-holder__content {
            margin-top: 8px;
        }

        .account-holder__point {
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4px;
            font-size: 0.875rem;
        }

        .account-holder__point .label {
            font-weight: 500;
            color: rgba(0, 0, 0, 0.8);
        }

        .account-holder__point .value {
            font-weight: 600;
            color: rgba(0, 0, 0);
        }

        .toggle-password-btn {
            cursor: pointer;
        }
        
        .toggle-password-btn:hover {
            background-color: #f0f0f0;
        }
    </style>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/topminer/demo1.fancart.sbs/core/resources/views/admin/users/detail.blade.php ENDPATH**/ ?>