<?php $__env->startSection('panel'); ?>
    <div class="row gy-4 mb-30">
        <div class="col-12">
            <div class="row gy-4">
                <div class="col-xxl-3 col-xl-8 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'info','icon' => 'la la-money-bill-wave-alt','title' => 'Balance','value' => ''.e($general->cur_sym).''.e(showAmount($user->balance)).'','link' => 'admin.report.transaction','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'info','icon' => 'la la-money-bill-wave-alt','title' => 'Balance','value' => ''.e($general->cur_sym).''.e(showAmount($user->balance)).'','link' => 'admin.report.transaction','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'success','icon' => 'la la-wallet','title' => 'Deposited','value' => ''.e($general->cur_sym).''.e(showAmount($widget['total_deposit'])).'','link' => 'admin.deposit.list','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'success','icon' => 'la la-wallet','title' => 'Deposited','value' => ''.e($general->cur_sym).''.e(showAmount($widget['total_deposit'])).'','link' => 'admin.deposit.list','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'danger','icon' => 'la la-wallet','title' => 'Withdrawn','value' => ''.e($general->cur_sym).''.e(showAmount($widget['total_withdrawn'])).'','link' => 'admin.withdraw.log','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'danger','icon' => 'la la-wallet','title' => 'Withdrawn','value' => ''.e($general->cur_sym).''.e(showAmount($widget['total_withdrawn'])).'','link' => 'admin.withdraw.log','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'warning','icon' => 'la la-exchange-alt','title' => 'Total Transferred','value' => ''.e($general->cur_sym).''.e(showAmount($widget['total_transferred'])).'','link' => 'admin.transfers.index','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'warning','icon' => 'la la-exchange-alt','title' => 'Total Transferred','value' => ''.e($general->cur_sym).''.e(showAmount($widget['total_transferred'])).'','link' => 'admin.transfers.index','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'primary','icon' => 'la la-money-bill','title' => '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 ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'primary','icon' => 'la la-money-bill','title' => '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($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'green','icon' => 'la la-box','title' => '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 ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'green','icon' => 'la la-box','title' => '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($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widget','data' => ['style' => '2','color' => 'warning','icon' => 'la la-hand-holding-usd','title' => 'Loan','value' => ''.e($widget['total_loan']).'','link' => 'admin.loan.index','queryString' => 'search='.e($user->username).'','overlayIcon' => '0','iconStyle' => 'solid']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => '2','color' => 'warning','icon' => 'la la-hand-holding-usd','title' => 'Loan','value' => ''.e($widget['total_loan']).'','link' => 'admin.loan.index','query_string' => 'search='.e($user->username).'','overlay_icon' => '0','icon_style' => 'solid']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>

                <div class="col-xxl-3 col-xl-4 col-sm-6">
                    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?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 ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widget'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?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($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
                </div>
            </div>
        </div>

        <div class="col-12">
            <div class="d-flex flex-wrap gap-3">
                <?php $hasPermission = App\Models\Role::hasPermission('admin.users.add.sub.balance')  ? 1 : 0;
            if($hasPermission == 1): ?>
                    <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 $hasPermission = App\Models\Role::hasPermission('admin.report.login.history')  ? 1 : 0;
            if($hasPermission == 1): ?>
                    <div class="flex-fill">
                        <a href="<?php echo e(route('admin.report.login.history')); ?>" 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 $hasPermission = App\Models\Role::hasPermission('admin.users.notification.log')  ? 1 : 0;
            if($hasPermission == 1): ?>
                    <!--<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 $hasPermission = App\Models\Role::hasPermission('admin.users.login')  ? 1 : 0;
            if($hasPermission == 1): ?>
                    <div class="flex-fill">
                        <a href="<?php echo e(route('admin.users.login', $user->id)); ?>" target="_blank" class="btn btn--primary btn--gradi btn--shadow w-100 btn-lg">
                            <i class="las la-sign-in-alt"></i><?php echo app('translator')->get('Login as User'); ?>
                        </a>
                    </div>
                <?php endif ?>

                <?php if($user->kyc_data): ?>
                    <?php $hasPermission = App\Models\Role::hasPermission('admin.users.kyc.details')  ? 1 : 0;
            if($hasPermission == 1): ?>
                        <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 $hasPermission = App\Models\Role::hasPermission('admin.users.status')  ? 1 : 0;
            if($hasPermission == 1): ?>
                    <div class="flex-fill">
                        <?php if($user->status == Status::USER_ACTIVE): ?>
                            <button type="button" class="btn btn--warning btn--gradi 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('Ban User'); ?>
                            </button>
                        <?php else: ?>
                            <button type="button" class="btn btn--success btn--gradi 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('Unban User'); ?>
                            </button>
                        <?php endif; ?>
                        <button type="button" class="btn btn--info btn--gradi btn--shadow w-100 btn-lg userDelete" data-bs-toggle="modal" data-bs-target="#userNoticeModal">
                                <i class="las la-ban"></i><?php echo app('translator')->get('User Notice'); ?>
                            </button>
                       
                    </div>
                    <div class="flex-fill">
                         <!--delete user-->
                        <button type="button" class="btn btn--danger btn--gradi btn--shadow w-100 btn-lg userStatus" data-bs-toggle="modal" data-bs-target="#userDeleteModal">
                                <i class="las la-ban"></i><?php echo app('translator')->get('Delete User'); ?>
                            </button>
                            </div>
                <?php endif ?>
            </div>
        </div>
    </div>

    <div class="row gy-4">
        <div class="col-xl-3 col-lg-5 col-md-5">
            <div class="row">
                <div class="col-6 col-sm-6 col-md-12">
                    <div class="card mb-4">
                        <div class="card-header">
                            <div class="card-title 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 text-center">
                            <img class="account-holder-image rounded border w-100" src="<?php echo e(getImage(getFilePath('userProfile') . '/' . $user->image, null, true)); ?>" alt="account-holder-image">
                        </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">
                                    <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">
                                    <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">
                                    <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">
                                        <small class="text-muted"><?php echo app('translator')->get('Referred By'); ?></small>
                                        <?php $hasPermission = App\Models\Role::hasPermission('admin.users.detail')  ? 1 : 0;
            if($hasPermission == 1): ?>
                                            <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">
                                        <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">
                                    <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 d-flex flex-wrap justify-content-between">
                    <h5 class="card-title mb-0"><?php echo app('translator')->get('Information of'); ?> <?php echo e($user->fullname); ?></h5>
                    <span>
                        <?php echo $user->status_badge ?>
                    </span>
                </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-lg-12 col-xl-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-lg-12 col-xl-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-lg-12 col-xl-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-lg-12 col-xl-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"></span>
                                        <input type="number" name="mobile" value="<?php echo e(old('mobile')); ?>" id="mobile" class="form-control checkUser" required>
                                    </div>
                                </div>
                            </div>

                            <div class="col-lg-12 col-xl-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->address->city); ?>">
                                </div>
                            </div>

                            <div class="col-lg-12 col-xl-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->address->state); ?>">
                                </div>
                            </div>

                            <div class="col-lg-12 col-xl-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->address->zip); ?>">
                                </div>
                            </div>

                            <div class="col-lg-12 col-xl-6">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('Country'); ?></label>
                                    <select name="country" class="form-control">
                                        <?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 echo e(__($country->country)); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>

                            <div class="col-lg-12 col-xl-6">
                                <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->address); ?>">
                                </div>
                            </div>
                             <div class="col-lg-12 col-xl-6">
                                <div class="form-group ">
                                    <label><?php echo app('translator')->get('Joined Date'); ?></label>
                                    <input type="datetime-local" step="any" name="created_at" value="<?php echo e($user->created_at); ?>" class="form-control" required>
                                </div>
                            </div>

                        </div>

                        <div class="row">
                            <div class="form-group col-lg-6 col-xxl-3">
                                <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 class="form-group col-lg-6 col-xxl-3">
                                <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 class="form-group col-lg-6 col-xxl-3">
                                <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 class="form-group col-lg-6 col-xxl-3">
                                <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 == 1): ?> checked <?php endif; ?>>
                            </div>
                        </div>

                        <?php $hasPermission = App\Models\Role::hasPermission('admin.users.update')  ? 1 : 0;
            if($hasPermission == 1): ?>
                            <button type="submit" class="btn btn--primary w-100 h-45 mt-3"><?php echo app('translator')->get('Submit'); ?>
                            </button>
                        <?php endif ?>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <?php $hasPermission = App\Models\Role::hasPermission('admin.users.add.sub.balance')  ? 1 : 0;
            if($hasPermission == 1): ?>
        
        <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)); ?>" 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(__($general->cur_text)); ?></div>
                                </div>
                            </div>
                            <!-- Date and time -->
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Date And Time'); ?></label>
                                <div class="input-group">
                                    <input type="datetime-local" step="any" name="datetime" class="form-control" placeholder="<?php echo app('translator')->get('Please provide date and time'); ?>" required>
                                </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 $hasPermission = App\Models\Role::hasPermission('admin.users.status')  ? 1 : 0;
            if($hasPermission == 1): ?>
        <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): ?>
                                <span><?php echo app('translator')->get('Ban User'); ?></span>
                            <?php else: ?>
                                <span><?php echo app('translator')->get('Unban User'); ?></span>
                            <?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 user 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 user?'); ?></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 ?>
    
    <!--User Notice-->
    <div id="userNoticeModal" 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><?php echo app('translator')->get('User Notice'); ?></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.notice', $user->id)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="modal-body">
                                <h6 class="mb-2">Whatever you post here will reflect on this particular user's dashboard</h6>
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Notice'); ?></label>
                                    <textarea class="form-control" name="notice" rows="4" value="$user->notice" required></textarea>
                                </div>
                           
                        </div>
                        <div class="modal-footer">
                                <button type="submit" class="btn btn--primary"><?php echo app('translator')->get('Save'); ?></button>
                           
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!---->
    
    <!--<!-Delete User Modal----->
        <?php $hasPermission = App\Models\Role::hasPermission('admin.users.status')  ? 1 : 0;
            if($hasPermission == 1): ?>
        <div id="userDeleteModal" 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): ?>
                                <span><?php echo app('translator')->get('Ban User'); ?></span>
                            <?php else: ?>
                                <span><?php echo app('translator')->get('Unban User'); ?></span>
                            <?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.delete', $user->id)); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="modal-body">
                              
                                <h6 class="mb-2"><?php echo app('translator')->get('Are you want to delete this user'); ?></h6>
                                
                                <input type="hidden" name="okay" value="1"></input>
                                <input type="hidden" name="userID" value="<?php echo e($user->id); ?>"></input>
                        </div>
                        <div class="modal-footer">
                           
                                <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>
                          
                        </div>
                    </form>
                </div>
            </div>
        </div>
    <?php endif ?>
<?php $__env->stopSection(); ?>

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

            $('.bal-btn').click(function() {
                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]').change(function() {
                mobileElement.text(`+${$('select[name=country] :selected').data('mobile_code')}`);
            });

            $('select[name=country]').val('<?php echo e(@$user->country_code); ?>');
            let dialCode = $('select[name=country] :selected').data('mobile_code');
            let mobileNumber = `<?php echo e($user->mobile); ?>`;
            mobileNumber = mobileNumber.replace(dialCode, '');
            $('input[name=mobile]').val(mobileNumber);
            mobileElement.text(`+${dialCode}`);

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

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/svkbbaze/public_html/core/resources/views/admin/users/detail.blade.php ENDPATH**/ ?>