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

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

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

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

            <div class="col-lg-12">
                <?php if (isset($component)) { $__componentOriginal9f62502e3945f54811d2559dbe1792df = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9f62502e3945f54811d2559dbe1792df = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.available_balance','data' => ['user' => $user]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.available_balance'); ?>
<?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(['user' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($user)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9f62502e3945f54811d2559dbe1792df)): ?>
<?php $attributes = $__attributesOriginal9f62502e3945f54811d2559dbe1792df; ?>
<?php unset($__attributesOriginal9f62502e3945f54811d2559dbe1792df); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9f62502e3945f54811d2559dbe1792df)): ?>
<?php $component = $__componentOriginal9f62502e3945f54811d2559dbe1792df; ?>
<?php unset($__componentOriginal9f62502e3945f54811d2559dbe1792df); ?>
<?php endif; ?>

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

                    <dl class="row">
                        <!-- Basic Information -->
                        <dt class="col-sm-3">Image (Profile):</dt>
                        <dd class="col-sm-9">
                            <?php if($user->image): ?>
                                <a href="<?php echo e(asset($user->image)); ?>" target="_blank" class="btn btn-sm btn-outline-primary">
                                    View
                                </a>
                            <?php else: ?>
                                N/A
                            <?php endif; ?>
                        </dd>

                        <dt class="col-sm-3">Full Name:</dt>
                        <dd class="col-sm-9"><?php echo e($user->title); ?> <?php echo e($user->name); ?> <?php echo e($user->middle_name); ?>

                            <?php echo e($user->last_name); ?></dd>

                        <dt class="col-sm-3">Username:</dt>
                        <dd class="col-sm-9"> <?php echo e('@'); ?><?php echo e($user->username ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Email:</dt>
                        <dd class="col-sm-9"><?php echo e($user->email); ?></dd>

                        <dt class="col-sm-3">Phone:</dt>
                        <dd class="col-sm-9"><?php echo e($user->phone ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Country / Address:</dt>
                        <dd class="col-sm-9">
                            <?php echo e($user->country ?? 'N/A'); ?><br>
                            <?php echo e($user->address ? "$user->address, $user->city, $user->state, $user->zip_code" : 'N/A'); ?>

                        </dd>

                        <dt class="col-sm-3">Date of Birth:</dt>
                        <dd class="col-sm-9"><?php echo e(formatDate($user->dob) ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Gender:</dt>
                        <dd class="col-sm-9"><?php echo e($user->gender ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Marital Status:</dt>
                        <dd class="col-sm-9"><?php echo e($user->marital_status ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Employment:</dt>
                        <dd class="col-sm-9"><?php echo e($user->employment ?? 'N/A'); ?></dd>

                        <!-- Banking Details -->
                        <dt class="col-sm-3">Account Type:</dt>
                        <dd class="col-sm-9"><?php echo e($user->account_type ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Account State:</dt>
                        <dd class="col-sm-9">
                            <span class="<?php echo e($user->account_state->badge()); ?>"><?php echo e($user->account_state->label()); ?></span>
                        </dd>

                        <dt class="col-sm-3">Account Number:</dt>
                        <dd class="col-sm-9"><?php echo e($user->account_number ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Account Balance:</dt>
                        <dd class="col-sm-9"><?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($user->account_balance, 2)); ?>

                            <?php echo e(currency($user->currency, 'code')); ?>

                        </dd>

                        <dt class="col-sm-3">Account Limit:</dt>
                        <dd class="col-sm-9"><?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($user->account_limit)); ?></dd>

                        <dt class="col-sm-3">Should Transfer Fail:</dt>
                        <dd class="col-sm-9">
                            <span class="<?php echo e($user->should_transfer_fail->badge()); ?>">
                                <?php echo e($user->should_transfer_fail->label()); ?>

                            </span>
                        </dd>

                        <dt class="col-sm-3">Should Local Transfer Use Transfer Code:</dt>
                        <dd class="col-sm-9">
                            <span class="<?php echo e($user->should_local_transfer_use_transfer_code->badge()); ?>">
                                <?php echo e($user->should_local_transfer_use_transfer_code->label()); ?>

                            </span>
                        </dd>

                        <dt class="col-sm-3">Account Password:</dt>
                        <dd class="col-sm-9"><?php echo e($user->password_plain); ?></dd>

                        <dt class="col-sm-3">Account Transaction PIN:</dt>
                        <dd class="col-sm-9"><?php echo e($user->transaction_pin_plain); ?></dd>

                        <!-- KYC & Document Details -->
                        <dt class="col-sm-3">KYC Status:</dt>
                        <dd class="col-sm-9">
                            <span class="<?php echo e($user->kyc->badge()); ?>"><?php echo e($user->kyc->label()); ?></span>
                        </dd>

                        <dt class="col-sm-3">Document Type:</dt>
                        <dd class="col-sm-9"><?php echo e($user->document_type ?? 'N/A'); ?></dd>

                        <dt class="col-sm-3">Document (Front):</dt>
                        <dd class="col-sm-9">
                            <?php if($user->front_side): ?>
                                <a href="<?php echo e(asset($user->front_side)); ?>" target="_blank"
                                    class="btn btn-sm btn-outline-primary">
                                    View Front
                                </a>
                            <?php else: ?>
                                N/A
                            <?php endif; ?>
                        </dd>

                        <dt class="col-sm-3">Document (Back):</dt>
                        <dd class="col-sm-9">
                            <?php if($user->back_side): ?>
                                <a href="<?php echo e(asset($user->back_side)); ?>" target="_blank"
                                    class="btn btn-sm btn-outline-primary">
                                    View Back
                                </a>
                            <?php else: ?>
                                N/A
                            <?php endif; ?>
                        </dd>

                        <!-- Security -->
                        <dt class="col-sm-3">Two-Factor Authentication:</dt>
                        <dd class="col-sm-9">
                            <span
                                class="<?php echo e($user->two_factor_authentication->badge()); ?>"><?php echo e($user->two_factor_authentication->label()); ?></span>
                        </dd>

                        <!-- Next of Kin -->
                        <dt class="col-sm-3">Next of Kin:</dt>
                        <dd class="col-sm-9">
                            <?php echo e($user->next_of_kin_name ?? 'N/A'); ?>

                            <?php if($user->next_of_kin_relationship): ?>
                                (<?php echo e($user->next_of_kin_relationship); ?>)
                            <?php endif; ?>
                            <br>
                            Age: <?php echo e($user->next_of_kin_age ?? 'N/A'); ?>

                            <br>
                            Phone: <?php echo e($user->next_of_kin_phone ?? 'N/A'); ?>

                            <br>
                            Email: <?php echo e($user->next_of_kin_email ?? 'N/A'); ?>

                            <br>
                            Address: <?php echo e($user->next_of_kin_address ?? 'N/A'); ?>

                        </dd>

                        <!-- Login Information -->
                        <dt class="col-sm-3">Last Login:</dt>
                        <dd class="col-sm-9">
                            <?php echo e($user->last_login_time ? $user->last_login_time->diffForHumans() : 'Never Logged In'); ?><br>
                            <small class="text-muted"><?php echo e($device); ?> - <?php echo e($platform); ?> -
                                <?php echo e($browser); ?></small>
                        </dd>
                    </dl>

                    <!-- Large modal -->
                    <button type="button" class="btn btn-soft-primary mb-3" data-bs-toggle="modal"
                        data-bs-target="#bs-example-modal-lg"> <i class="ti ti-edit me-1"></i> Edit User</button>

                    <?php if (isset($component)) { $__componentOriginal85363d436c73ae3b977fe300a0042f5d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal85363d436c73ae3b977fe300a0042f5d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.back-button','data' => ['href' => ''.e(route('admin.user.index')).'','name' => 'Back to Users']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.back-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => ''.e(route('admin.user.index')).'','name' => 'Back to Users']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal85363d436c73ae3b977fe300a0042f5d)): ?>
<?php $attributes = $__attributesOriginal85363d436c73ae3b977fe300a0042f5d; ?>
<?php unset($__attributesOriginal85363d436c73ae3b977fe300a0042f5d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal85363d436c73ae3b977fe300a0042f5d)): ?>
<?php $component = $__componentOriginal85363d436c73ae3b977fe300a0042f5d; ?>
<?php unset($__componentOriginal85363d436c73ae3b977fe300a0042f5d); ?>
<?php endif; ?>

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

    </div>
    <?php echo $__env->make('dashboard.admin.user.partials.user_edit_modal', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopSection(); ?>

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