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

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

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

            </div>
        </div>

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

            <div class="col-xl-4 col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <div class="d-flex align-items-center gap-2">
                            <?php if($user->image): ?>
                                <a href="<?php echo e(asset($user->image)); ?>" target="_blank"><img src="<?php echo e(asset($user->image)); ?>"
                                        class="avatar-xl rounded-circle border border-light border-2"></a>
                            <?php else: ?>
                                <img src="<?php echo e(asset('assets/images/avatar.png')); ?>"
                                    class="avatar-xl rounded-circle border border-light border-2">
                            <?php endif; ?>
                            <div>
                                <h4 class="text-dark fw-medium"><?php echo e($user->first_name); ?> <?php echo e($user->last_name); ?></h4>
                                <p class="mb-0 text-muted">Account Number: <?php echo e($user->account_number); ?></p>
                            </div>
                            <div class="ms-auto">
                                <?php echo $user->account_state->badge(); ?>

                            </div>
                        </div>
                        <div class="mt-3">
                            <h4 class="fs-15">Contact Details :</h4>
                            <div class="mt-3">
                                <div class="d-flex align-items-center gap-2 mb-2">
                                    <div class="bg-opacity-75 d-flex align-items-center justify-content-center rounded">
                                        <iconify-icon icon="solar:point-on-map-bold-duotone"
                                            class="fs-20 text-primary"></iconify-icon>
                                    </div>
                                    <p class="mb-0 text-dark"><?php echo e($user->address); ?>, <?php echo e($user->state); ?>,
                                        <?php echo e($user->nationality); ?></p>
                                </div>
                                <div class="d-flex align-items-center gap-2 mb-2">
                                    <div class="bg-opacity-75 d-flex align-items-center justify-content-center rounded">
                                        <iconify-icon icon="solar:smartphone-2-bold-duotone"
                                            class="fs-20 text-primary"></iconify-icon>
                                    </div>
                                    <p class="mb-0 text-dark"><?php echo e($user->dial_code); ?><?php echo e($user->phone); ?></p>
                                </div>
                                <div class="d-flex align-items-center gap-2">
                                    <div class="bg-opacity-75 d-flex align-items-center justify-content-center rounded">
                                        <iconify-icon icon="solar:letter-bold-duotone"
                                            class="fs-20 text-primary"></iconify-icon>
                                    </div>
                                    <p class="mb-0 text-dark"><?php echo e($user->email); ?></p>
                                </div>
                            </div>
                        </div>
                        <div class="mt-3">
                            <h4 class="fs-15">Account Details :</h4>
                            <p class="mb-0 text-muted fs-14 mt-2">Account Type: <?php echo e(ucfirst($user->account_type)); ?>,
                                Professional Status: <?php echo e($user->professional_status); ?></p>
                        </div>
                    </div>
                    <div class="card-footer border-top border-dashed gap-1 hstack">
                        <a href="<?php echo e(route('user.profile.edit')); ?>" class="btn btn-primary w-100"><i
                                class="ti ti-edit fs-20"></i> Edit</a>
                    </div>
                </div>

                <div class="card">
                    <div class="card-header border-bottom border-dashed">
                        <div class="d-flex align-items-center gap-2">
                            <div class="d-block">
                                <h4 class="card-title mb-0">Uploaded Documents</h4>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <?php if($user->id_front): ?>
                            <div class="d-flex p-2 rounded align-items-center gap-2 bg-light-subtle border border-dashed">
                                <div
                                    class="avatar avatar-lg d-flex align-items-center justify-content-center rounded-circle">
                                    <iconify-icon icon="solar:file-download-bold" class="text-primary fs-3"></iconify-icon>
                                </div>
                                <div class="d-block">
                                    <a href="<?php echo e(asset($user->id_front)); ?>" target="_blank" class="text-dark fw-medium">ID
                                        Front</a>
                                </div>
                            </div>
                        <?php endif; ?>
                        <?php if($user->id_back): ?>
                            <div
                                class="d-flex p-2 rounded align-items-center gap-2 bg-light-subtle border border-dashed mt-2">
                                <div
                                    class="avatar avatar-lg d-flex align-items-center justify-content-center rounded-circle">
                                    <iconify-icon icon="solar:file-download-bold" class="text-primary fs-3"></iconify-icon>
                                </div>
                                <div class="d-block">
                                    <a href="<?php echo e(asset($user->id_back)); ?>" target="_blank" class="text-dark fw-medium">ID
                                        Back</a>
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="card">
                    <div class="card-header d-flex align-items-center justify-content-between border-bottom border-dashed">
                        <h4 class="card-title mb-0">Account Balance</h4>
                        <div>
                            <p class="mb-0 fs-15 text-dark fw-medium">
                                <?php echo e(currency($user->currency)); ?><?php echo e(formatAmount($user->balance)); ?></p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-8 col-lg-12">
                <div class="card">
                    <div class="card-header border-bottom border-dashed">
                        <h4 class="card-title mb-0">User Information</h4>
                    </div>
                    <div class="card-body">
                        <div class="row justify-content-between align-items-center">
                            <div class="col-lg-3 col-6 border-end border-dashed">
                                <p class="text-muted mb-1">Gender</p>
                                <p class="fs-15 fw-medium mb-3"><?php echo e(ucfirst($user->gender)); ?></p>
                                <p class="text-muted mb-1">Date Of Birth</p>
                                <p class="fs-15 fw-medium mb-0"><?php echo e($user->dob); ?></p>
                            </div>
                            <div class="col-lg-3 col-6 border-end border-dashed">
                                <p class="text-muted mb-1">Phone</p>
                                <p class="fs-15 fw-medium mb-3"><?php echo e($user->dial_code); ?><?php echo e($user->phone); ?></p>
                                <p class="text-muted mb-1">State</p>
                                <p class="fs-15 fw-medium mb-0"><?php echo e($user->state); ?></p>
                            </div>
                            <div class="col-lg-3 col-6">
                                <p class="text-muted mb-1">Address</p>
                                <p class="fs-15 fw-medium mb-3"><?php echo e($user->address); ?></p>
                                <p class="text-muted mb-1">Register Date</p>
                                <p class="fs-15 fw-medium mb-0"><?php echo e($user->created_at->format('d M Y')); ?></p>
                            </div>
                        </div>
                        <hr class="my-3">
                        <h4 class="mb-0 fs-15 fw-semibold">Additional Information :</h4>
                        <div class="row mt-2 g-2">
                            <div class="col-lg-3 col-6">
                                <h3 class="fw-medium"><?php echo e(ucfirst($user->marital_status)); ?></h3>
                                <p class="mb-0 text-muted">Marital Status</p>
                            </div>
                            <div class="col-lg-3 col-6">
                                <h3 class="fw-medium"><?php echo e($user->nationality); ?></h3>
                                <p class="mb-0 text-muted">Nationality</p>
                            </div>
                            <div class="col-lg-3 col-6">
                                <h3 class="fw-medium"><?php echo e($user->professional_status); ?></h3>
                                <p class="mb-0 text-muted">Professional Status</p>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="card">
                    <div class="card-header border-bottom border-dashed">
                        <div class="d-flex align-items-center gap-2">
                            <div class="d-block">
                                <h4 class="card-title mb-0">Account Status</h4>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="row g-3">
                            <div class="col-lg-6">
                                <div class="d-flex p-2 rounded align-items-center gap-2 border">
                                    <?php if($user->is_account_verified): ?>
                                        <div
                                            class="avatar avatar-lg bg-success-subtle d-flex align-items-center justify-content-center rounded">
                                            <iconify-icon icon="solar:check-circle-bold"
                                                class="text-success fs-32"></iconify-icon>
                                        </div>
                                        <div>
                                            <p class="text-muted fw-medium mb-1 fs-15">Account Verification</p>
                                            <p class="text-dark fw-medium mb-0 fs-15">
                                                Verified</p>
                                        </div>
                                    <?php else: ?>
                                        <div
                                            class="avatar avatar-lg bg-danger-subtle d-flex align-items-center justify-content-center rounded">
                                            <iconify-icon icon="solar:close-circle-bold"
                                                class="text-danger fs-32"></iconify-icon>
                                        </div>
                                        <div>
                                            <p class="text-muted fw-medium mb-1 fs-15">Account Verification</p>
                                            <p class="text-dark fw-medium mb-0 fs-15">
                                                Unverified</p>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="d-flex p-2 rounded align-items-center gap-2 border">
                                    <?php if($user->email_verified_at): ?>
                                        <div
                                            class="avatar avatar-lg bg-primary-subtle d-flex align-items-center justify-content-center rounded">
                                            <iconify-icon icon="solar:letter-bold-duotone"
                                                class="text-primary fs-32"></iconify-icon>
                                        </div>
                                        <div>
                                            <p class="text-muted fw-medium mb-1 fs-15">Email Verification</p>
                                            <p class="text-dark fw-medium mb-0 fs-15">
                                                Verified</p>
                                        </div>
                                    <?php else: ?>
                                        <div
                                            class="avatar avatar-lg bg-danger-subtle d-flex align-items-center justify-content-center rounded">
                                            <iconify-icon icon="solar:letter-bold-duotone"
                                                class="text-danger fs-32"></iconify-icon>
                                        </div>
                                        <div>
                                            <p class="text-muted fw-medium mb-1 fs-15">Email Verification</p>
                                            <p class="text-dark fw-medium mb-0 fs-15">
                                                Unverified</p>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="d-flex p-2 rounded align-items-center gap-2 border">
                                    <?php if($user->transfer_pin): ?>
                                        <div
                                            class="avatar avatar-lg bg-primary-subtle d-flex align-items-center justify-content-center rounded">
                                            <iconify-icon icon="solar:lock-keyhole-bold-duotone"
                                                class="text-primary fs-32"></iconify-icon>
                                        </div>
                                        <div>
                                            <p class="text-muted fw-medium mb-1 fs-15">Transfer Pin</p>
                                            <p class="text-dark fw-medium mb-0 fs-15">
                                                Set</p>
                                        </div>
                                    <?php else: ?>
                                        <div
                                            class="avatar avatar-lg bg-danger-subtle d-flex align-items-center justify-content-center rounded">
                                            <iconify-icon icon="solar:lock-keyhole-bold-duotone"
                                                class="text-danger fs-32"></iconify-icon>
                                        </div>
                                        <div>
                                            <p class="text-muted fw-medium mb-1 fs-15">Transfer Pin <span><a
                                                        href="<?php echo e(route('user.transfer_pin.index')); ?>">Set Now</a></span>
                                            </p>
                                            <p class="text-dark fw-medium mb-0 fs-15">
                                                Not Set</p>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

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

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