<?php $__env->startSection('content'); ?>

    <body data-theme-color="color-red"
        style="background:linear-gradient(183deg, #d8e01e, #fdffca 34%, #fbffa5);background-size: 100%;background-repeat: no-repeat">
        <div class="page-wraper">


            <style>
                .header .header-content .mid-content {
                    flex: 1;
                    text-align: left;
                }

                .header {
                    background-color: #ed7016;
                    min-height: 55px;
                    z-index: 2;
                    border-bottom: 0px solid #dddddd;
                }

                #preloader {
                    top: 0;
                }

                i.fa-solid.fa-bell {
                    font-size: 22px;
                    color: white;
                    margin-top: 12px;
                    padding-right: 7px;
                }

                i.fa-solid.fa-globe {
                    font-size: 22px;
                    color: white;
                    margin-top: 12px;
                    padding-right: 7px;
                }

                .header .sticky-header {
                    top: 0px;
                    background: #ed7016;
                }

                .toast.style-1.toast-danger {
                    background-color: #1e1e1e5e;
                    color: #fff;
                    border: 0px white solid;
                    backdrop-filter: blur(5px);
                }

                .toast.style-1 .toast-body {
                    display: flex;
                    align-items: center;
                    padding: 14px;
                }

                .toast.style-1.toast-danger .toast-content strong {
                    color: #fff;
                    font-weight: 600;
                }
            </style>


            <!-- Header -->
            <header class="header">
                <div class="main-bar">
                    <div class="container">
                        <div class="header-content">

                            
                            <!--              <div class="right-content">-->
                            <!--                  <a href="javascript:void(0);" class="menu-toggler">-->
                            <!--	<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">-->
                            <!--		<path opacity="0.4" d="M16.0755 2H19.4615C20.8637 2 22 3.14585 22 4.55996V7.97452C22 9.38864 20.8637 10.5345 19.4615 10.5345H16.0755C14.6732 10.5345 13.537 9.38864 13.537 7.97452V4.55996C13.537 3.14585 14.6732 2 16.0755 2Z" fill="#a19fa8"/>-->
                            <!--		<path fill-rule="evenodd" clip-rule="evenodd" d="M4.53852 2H7.92449C9.32676 2 10.463 3.14585 10.463 4.55996V7.97452C10.463 9.38864 9.32676 10.5345 7.92449 10.5345H4.53852C3.13626 10.5345 2 9.38864 2 7.97452V4.55996C2 3.14585 3.13626 2 4.53852 2ZM4.53852 13.4655H7.92449C9.32676 13.4655 10.463 14.6114 10.463 16.0255V19.44C10.463 20.8532 9.32676 22 7.92449 22H4.53852C3.13626 22 2 20.8532 2 19.44V16.0255C2 14.6114 3.13626 13.4655 4.53852 13.4655ZM19.4615 13.4655H16.0755C14.6732 13.4655 13.537 14.6114 13.537 16.0255V19.44C13.537 20.8532 14.6732 22 16.0755 22H19.4615C20.8637 22 22 20.8532 22 19.44V16.0255C22 14.6114 20.8637 13.4655 19.4615 13.4655Z" fill="#a19fa8"/>-->
                            <!--	</svg>-->
                            <!--</a>-->
                            <!--              </div>-->
                        </div>
                    </div>
                </div>
            </header>





            <!--   <div id="preloader">-->
            <!--	<div class="spinner"></div>-->
            <!--</div>-->
            <meta name="theme-color" content="#ed7016">

            <style>
                body {
                    background: linear-gradient(183deg, #d8e01e, #d8e01e 34%, #d8e01e);
                    height: 1000px;
                }

                .header {
                    background-color: #f7f7f700;
                    min-height: 55px;
                    z-index: 2;
                    border-bottom: 0px solid #dddddd;
                }

                .profile-header {
                    background: var(--gradient);
                    color: #fff;
                    text-align: center;
                    padding: 40px 20px;
                    border-bottom-left-radius: 30px;
                    border-bottom-right-radius: 30px;
                    position: relative;
                    padding-top: 20px !important;
                    border-radius: 0.7rem;
                }

                .profile-header .edit-btn:hover {
                    background: #fff;
                    color: #4e73df;
                }

                .profile-picture {
                    width: 80px;
                    height: 80px;
                    border-radius: 50%;
                    border: 5px solid #fff;
                    object-fit: cover;
                    margin: 5px auto;
                }

                /* Stats Section */
                .stats-container {
                    display: flex;
                    justify-content: space-around;
                    background: #fff;
                    border-radius: 15px;
                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
                    padding: 20px;
                    margin-top: -40px;
                    position: relative;
                    z-index: 1;
                }

                .stats-item {
                    text-align: center;
                    color: #333;
                }

                .stats-item i {
                    font-size: 28px;
                    color: var(--primary);
                    margin-bottom: 10px;
                }

                .stats-item h5 {
                    font-weight: bold;
                    margin: 0;
                }

                .stats-item p {
                    font-size: 14px;
                    color: #888;
                }

                /* Options Section */
                .options-container {
                    margin-top: 20px;
                }

                .option-item {
                    display: flex;
                    align-items: center;
                    gap: 15px;
                    background: #fff;
                    padding: 15px 20px;
                    margin-bottom: 15px;
                    border-radius: 10px;
                    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
                    color: #333;
                    font-weight: bold;
                    text-decoration: none;
                    transition: background 0.3s, transform 0.2s;
                }

                .option-item:hover {
                    background: var(--primary);
                    color: #fff;
                    transform: translateY(-5px);
                }

                .option-item i {
                    font-size: 20px;
                    color: var(--primary);
                }

                .option-item:hover i {
                    color: #fff;
                }

                .info_card {
                    height: 50px;
                    background: none;
                    border-radius: 8px 8px 8px 8px;
                    padding: 15px;
                    margin-bottom: 32px;
                }

                .flex_left {
                    display: flex;
                    justify-content: left;
                }

                .info_card .avatar {
                    width: 62px;
                    height: 62px;
                    border-radius: 50%;
                    border: 2px solid #EEEEEE;
                    background: #ffffff;
                    margin-top: -6px;
                }

                .info_card .username .nickname {
                    font-family: Arial, Arial;
                    font-weight: 400;
                    font-size: 16px;
                    color: #FFFFFF;
                    font-weight: 700;
                    line-height: 20px;
                }

                .info_card .username .account {
                    margin-top: 8px;
                    font-family: Arial, Arial;
                    font-weight: 400;
                    font-size: 14px;
                    color: #FFFFFF;
                }

                .info_card .username {
                    margin: 0;
                    padding: 0;
                    padding-left: 10px;
                    line-height: 1;
                }

                .flex_space {
                    display: flex;
                    justify-content: space-between;
                }

                .layui-row:after,
                .layui-row:before {
                    content: "";
                    display: block;
                    clear: both;
                }

                .layui-col-xs4 {
                    width: 33.33333333%;
                }

                .common_card .value {
                    font-family: Arial, Arial;
                    font-weight: 700;
                    font-size: 16px;
                    color: #bac300;
                    line-height: 20px;
                }

                .common_card .label {
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 13px;
                    color: #888888;
                    line-height: 20px;
                }

                .layui-col-xs1,
                .layui-col-xs10,
                .layui-col-xs11,
                .layui-col-xs12,
                .layui-col-xs2,
                .layui-col-xs3,
                .layui-col-xs4,
                .layui-col-xs5,
                .layui-col-xs6,
                .layui-col-xs7,
                .layui-col-xs8,
                .layui-col-xs9 {
                    float: left;
                }

                p {
                    margin-top: 0;
                    margin-bottom: 0rem;
                }

                .common_card {
                    background: rgba(255, 255, 255, 1);
                    border-radius: 8px 8px 8px 8px;
                    padding: 16px;
                    margin-bottom: -5px;
                }

                .layui-col-space15>* {
                    padding: 7.5px;
                }

                .layui-btn-lg {
                    height: 44px;
                    line-height: 44px;
                    padding: 0 25px;
                    font-size: 16px;
                }

                .layui-btn {
                    display: inline-block;
                    vertical-align: middle;
                    height: 40px;
                    line-height: 38px;
                    border: 1px solid transparent;
                    padding: 0 18px;
                    color: #fff;
                    white-space: nowrap;
                    text-align: center;
                    font-size: 14px;
                    background: #bdc600 !important;
                    border-radius: 71px;
                    box-shadow: rgba(255, 255, 255, 0.1) -3px -3px 9px inset, rgb(255 255 255 / 7%) 0 3px 9px inset,
                        rgba(255, 255, 255, 0.6) 0 1px 1px inset, rgb(0 0 0 / 5%) 0 -8px 36px inset, rgba(255, 255, 255, 0.6) 0 1px 5px inset, rgb(0 0 0 / 3%) 2px 19px 31px;
                }

                .layui-btn-fluid {
                    width: 100%;
                }

                .layui-col-xs6 {
                    width: 50%;
                }

                .header .sticky-header {
                    position: fixed;
                    box-shadow: none;
                    background: #ffffff00;
                    transition: all 0.5s;
                    width: 100%;
                }

                a:hover,
                a:focus,
                .fa-solid,
                a.active,
                .fa-solid.active {
                    text-decoration: none;
                    outline: none;
                    color: #bac300 !important;
                }

                .card_title {
                    font-family: Arial, Arial;
                    font-weight: 700;
                    font-size: 16px;
                    color: #2C2C2C;
                    line-height: 18px;
                    text-align: left;
                    margin-bottom: 20px;
                }

                .user_main {
                    padding: 21px;
                    position: unset;
                    top: unset;
                    z-index: 111;
                    background: #ffffff;
                    border-radius: 20px 20px 0px 0px;
                    margin-bottom: 80px;
                    margin: -15px;
                    margin-top: 5px;
                }

                .user_main .user_list {
                    margin: -6px;
                    margin-bottom: 15px;
                    background: #fff;
                    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.01);
                    border-radius: 8px;
                    border: none;
                    padding: 10px;
                    border: 1px white solid;
                }

                .user_main .user_card {
                    margin: 0 15px;
                    padding: 15px 0;
                    border-bottom: 1px solid #EEEEEE;
                }

                .user_main .user_card .item {
                    display: flex;
                    justify-content: space-between;

                }

                .user_main .user_card .item .title {
                    display: inline-block;
                    padding-left: 10px;
                    font-family: Arial, Arial;
                    font-weight: 700;
                    font-size: 14px;
                    color: #5c5c5c;
                    line-height: 18px;
                }

                .user_main .user_card .item img {
                    width: 32px;
                    height: 32px;
                }

                .user_main .user_card .item .right_icon {
                    color: #D6D6D6;
                    line-height: 32px;
                    font-weight: bold;
                }

                .logout {
                    padding: 10px;
                    background: #FFFFFF;
                    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.01);
                    border-radius: 10px 10px 10px 10px;
                }

                .logout a {
                    font-family: Arial, Arial;
                    font-weight: 700;
                    font-size: 16px;
                    color: #FF6F47;
                    line-height: 30px;
                }

                .logout img {
                    height: 24px;
                    width: 24px;
                }

                a:hover,
                a:focus,
                a.active {
                    text-decoration: none;
                    outline: none;
                    color: #ffffff;
                }

                .logout a {
                    font-family: 'Poppins';
                    font-weight: 600;
                    font-size: 16px;
                    color: #ffffff;
                    line-height: 30px;
                }

                .logout {
                    padding: 12px;
                    background: #bac300;
                    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.01);
                }
            </style>


            <div class="page-content">

                <div class="content-inner pt-0">
                    <div class="container fb">


                        <div class="header" style="height: 290px;">
                            <div class="info_card flex_space" style="margin-top: -58px">
                                <div class="flex_left">
                                    <a href="#"><img src="<?php echo e(asset('assets/app/img/584b3ee7b490ec6ac904e93d.png')); ?>"
                                            class="avatar"></a>
                                    <div class="username">
                                        <a href="#" class="nickname">
                                            ID: <?php echo e($user->ref_code); ?>

                                        </a>
                                        <p class="account">
                                            <?php echo e(Split_Hide_Name($user->mobile)); ?> </p>
                                    </div>
                                </div>
                                <div style="border-radius: 50%;width: 40px;height: 40px;text-align: center;">
                                    <a href="#">
                                        <img src="<?php echo e(asset('assets/app/img/download-1.png')); ?>"
                                            style="width: 30px;height: 30px;">
                                    </a>
                                </div>
                            </div>
                            <div class="common_card"
                                style="background: #FFFFFF;border-radius:8px;background-image: url(<?php echo e(asset('assets/app/img/20250503-112833.png')); ?>);background-size: 100% 90px;background-repeat: no-repeat;">
                                <div class="flex_space" style="height: 90px;">
                                    <a onclick="navigate('/home/bank');">

                                        <?php if(auth()->user()->bankAccount): ?>
                                            <div
                                                style="font-family: Arial, Arial;font-weight: 600;font-size: 16px;color: #ffffff; ">
                                                <?php echo e(auth()->user()->bankAccount->account_name); ?> </div>
                                            <div
                                                style="font-family: Arial, Arial;font-weight: 600;font-size: 16px;color: #ffffff;">
                                                <?php echo e(Split_Hide_Name(auth()->user()->bankAccount->account_number)); ?></div>
                                        <?php endif; ?>
                                    </a>
                                    <div style="padding: 5px">
                                        <img src="<?php echo e(asset('assets/app/img/bankico.png')); ?>"
                                            style="width: 43px;height: 43px">
                                    </div>
                                </div>
                                <div class="layui-row">
                                    <div class="layui-col-xs4">
                                        <div style="text-align: left">
                                            <p class="value"><?php echo e($general->cur_sym); ?><?php echo e(number_format($user->balance + $user->bonus_balance)); ?></p>
                                            <p class="label">Balance</p>
                                        </div>
                                    </div>
                                    <div class="layui-col-xs4">
                                        <div style="text-align: left">
                                            <p class="value"><?php echo e($general->cur_sym); ?><?php echo e(number_format($user->balance)); ?></p>
                                            <p class="label">Recharge</p>
                                        </div>
                                    </div>
                                    <div class="layui-col-xs4">
                                        <div style="text-align: left">
                                            <p class="value"><?php echo e($general->cur_sym); ?><?php echo e(number_format($user->bonus_balance)); ?></p>
                                            <p class="label">Withdraw</p>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-row" style="margin-top: 15px;">


                                </div>
                                <div class="layui-row layui-col-space15" style="margin-top: 15px;">
                                    <div class="layui-col-xs6">
                                        <a href="<?php echo e(route('user.deposit')); ?>"
                                            class="layui-btn layui-btn-lg layui-btn-fluid layui-btn-radius"
                                            style="background: #2196f3;">
                                            Recharge
                                        </a>
                                    </div>
                                    <div class="layui-col-xs6">
                                        <a href="<?php echo e(route('user.withdraw')); ?>"
                                            class="layui-btn layui-btn-lg layui-btn-fluid layui-btn-radius"
                                            style="background: #2196f3;">
                                            Withdraw
                                        </a>
                                    </div>
                                </div>
                            </div>

                            <div class="user_main">


                                <div class="user_list">

                                    <div class="user_card">
                                        <div class="item">
                                            <a href="<?php echo e(route('user.investment.log')); ?>" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/shopping-bags-1.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">My Purchase</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>
                                    <div class="user_card">
                                        <div class="item">
                                            <a href="<?php echo e(route('user.account-setup')); ?>" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/online-order.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">Account Details</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>
                                    <div class="user_card">
                                        <div class="item">
                                            <a href="<?php echo e(route('user.withdraw.history')); ?>" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/report.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">Withdraw Record</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>
                                    <div class="user_card">
                                        <div class="item">
                                            <a href="<?php echo e(route('user.deposit.history')); ?>" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/report.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">Recharge Record</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>
                                    <div class="user_card">
                                        <div class="item">
                                            <a href="<?php echo e(route('user.trx.log')); ?>" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/document-1.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">Income Record</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>
                                    <div class="user_card">
                                        <div class="item">
                                            <a href="<?php echo e(route('user.cs')); ?>" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/robot-1.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">Help Center</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>

                                    <div class="user_card">
                                        <div class="item">
                                            <a href="#" style="width: 100%">
                                                <img src="<?php echo e(asset('assets/app/img/download-64.png')); ?>"
                                                    style="display: inline">
                                                <p class="title">Download App</p>
                                            </a>
                                            <p class="right_icon"><i class="fa-solid fa-chevron-right"></i></p>
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <div class="logout" style="border-radius:20px;text-align: center;margin-bottom: 80px;">
                                <a href="<?php echo e(route('user.logout')); ?>"
                                    style="display: block; text-decoration: none; line-height: 20px; font-size: 18px;">
                                    <i class="fa-solid fa-right-to-bracket"></i> Logout
                                </a>
                            </div>

                        </div>
                    </div>
                </div>
            </div>


            <!-- Menubar -->

            <div class="menubar-area">
                <div class="toolbar-inner menubar-nav">
                    <a href="<?php echo e(route('user.home')); ?>" class="nav-link ">
                        <img src="<?php echo e(asset('assets/app/img/home.png')); ?>" style="width: 40px;">
                        <label style="font-size:12px; font-weight: 600; margin-top:-5px;">Home</label>
                    </a>
                    <a href="<?php echo e(route('user.investment')); ?>" class="nav-link ">
                        <img src="<?php echo e(asset('assets/app/img/plan.png')); ?>" style="width: 40px;">

                        <label style="font-size: 12px; font-weight: 600; margin-top:-5px;">Plans</label>
                    </a>
                    <a href="<?php echo e(route('user.referrals')); ?>" class="nav-link ">
                        <img src="<?php echo e(asset('assets/app/img/team.png')); ?>" style="width: 40px;">
                        <label style="font-size: 12px; font-weight: 600; margin-top:-5px;">Team</label>
                    </a>
                    <a href="<?php echo e(route('user.profile.setting')); ?>" class="nav-link ">
                        <img src="<?php echo e(asset('assets/app/img/profile_a.png')); ?>" style="width: 40px;">

                        <label style="font-size: 12px; font-weight: 600; margin-top:-5px;color: #d8e01e;">Profile</label>
                    </a>
                </div>
            </div>
            <!-- Menubar -->

            <script>
                function uploadProfile() {
                    let input = document.createElement("input");
                    input.accept = ".png,.jpg,.jpeg";
                    input.type = "file";
                    input.onchange = function() {
                        const file = input.files[0];
                        if (file) {
                            const reader = new FileReader();

                            reader.onload = () => {
                                const base64String = reader.result.split(",")[1];
                                document.querySelector("#profileImage").src = "data:image/png;base64," + base64String;
                                $.post("/home/upload_profile_image", {
                                    data: base64String
                                }, (data) => {

                                });
                            };

                            reader.readAsDataURL(file);
                        }
                    }
                    input.click();



                }
            </script>


            <style>
                .menubar-area .toolbar-inner .nav-link.active:after,
                .menubar-area .toolbar-inner .menu-toggler.active:after {
                    content: "";
                    position: absolute;
                    bottom: -11px;
                    height: 5px;
                    background: #340166;
                }

                .menubar-area {
                    position: fixed;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    background: #fff;
                    padding: 20px;
                    z-index: 999;
                    padding-top: 12px !important;
                    padding-bottom: 10px !important;
                    border-radius: 8px 8px 0px 0px;
                    box-shadow: 0 12px 26px 0 rgba(0, 0, 0, 0.3);
                }

                a:hover,
                a:focus,
                .fa-solid,
                a.active,
                .fa-solid.active {
                    text-decoration: none;
                    outline: none;
                    color: var(--primary-hover);
                }
            </style>




        </div>


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

<?php echo $__env->make('layouts.users', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/olex/core/resources/views/templates/basic/user/profile_setting.blade.php ENDPATH**/ ?>