<?php $__env->startSection('content'); ?>
    <section class="opay_wrap accout_page">
        <div class="price_box  ">
            <div class="price_box">
                <h2 class="f-14 align-items-center justify-content-center d-flex text-white txt_lit">Available Balance</h2>
                <h5 class="text-center text-white f-30">₦<?php echo e(number_format($user->balance + $user->bonus_balance)); ?></h5>
                <ul>
                    <li><a href="<?php echo e(route('user.deposit')); ?>"><i class="fa fa-plus"></i>Add Money</a></li>
                    <li><a href="<?php echo e(route('user.investment.log')); ?>"><i class="fa fa-shopping-cart"></i>My Orders</a></li>
                    <li><a href="<?php echo e(route('user.account-setup')); ?>"><i class="fa fa-university"></i>My Bank</a></li>
                    <li class="Withdrawal"><a href="<?php echo e(route('user.withdraw')); ?>"><i
                                class="fa fa-long-arrow-left"></i>Withdrawal</a></li>
                </ul>
            </div>

            <?php if(auth()->user()->bankAccount): ?>
                <div class="media_object ">
                    <p>
                        <?php echo e(auth()->user()->bankAccount->bank_name); ?><br>
                        <?php echo e(substr(auth()->user()->bankAccount->account_number, 0, 3) . str_repeat('*', 4) . substr(auth()->user()->bankAccount->account_number, 7)); ?><br>
                        
                    </p>
                    <a href="<?php echo e(url('user/bank/delete')); ?>" class="theme_btn"><i class="fa fa-trash"></i></a>


                </div>
            <?php else: ?>
                <div class="media_object ">
                    <p>No bank card, Please add a bank card</p>
                    <button type="button" class="theme_btn"><i class="fa fa-question"></i></button>


                </div>
            <?php endif; ?>
        </div>
        <div class="opay_body accout_page_body">
            <div class="card">
                <ul>

                    <li>
                        <a href="<?php echo e(route('user.deposit.history')); ?>"> <span class="left_text"><i class="fa fa-credit-card-alt"></i> </span><span
                                class="text_inner">Deposit History <small>View your deposit transactions</small></span> <i
                                class="fa fa-angle-right right_icon"></i></a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('user.withdraw.history')); ?>"> <span class="left_text"><i class="fa fa-university"></i> </span><span
                                class="text_inner">Withdrawal History <small>View your deposit transactions</small></span>
                            <i class="fa fa-angle-right right_icon"></i></a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('user.trx.log')); ?>"> <span class="left_text"><i class="fa fa-money"></i> </span><span
                                class="text_inner">Income History <small>View your product incomes</small></span> <i
                                class="fa fa-angle-right right_icon"></i></a>
                    </li>

                    <li>
                        <a href="<?php echo e(route('user.referrals')); ?>"> <span class="left_text"><i class="fa fa-users"></i> </span><span
                                class="text_inner">Team Members <small>View your referred team members</small></span> <i
                                class="fa fa-angle-right right_icon"></i></a>
                    </li>

                </ul>
            </div>
            <div class="card mt-3">
                <ul>
                    <li><a href="<?php echo e(route('user.change.password')); ?>"><span class="left_text"><i class="fa fa-shield"></i> Update Password</span> <i
                                class="fa fa-angle-right right_icon"></i></a></li>
                    <li><a href=""><span class="left_text"><i class="fa fa-whatsapp"></i>Support</span> <i
                                class="fa fa-angle-right right_icon"></i></a></li>
                    <li><a href="#"><span class="left_text"><i class="fa fa-telegram"></i>Join Community</span> <i
                                class="fa fa-angle-right right_icon"></i></a></li>
                    <li><a href="#"><span class="left_text"><i class="fa fa-android"></i>Download App</span> <i
                                class="fa fa-angle-right right_icon"></i></a></li>
                    <li><a href="<?php echo e(route('user.logout')); ?>"><span class="left_text"><i class="fa fa-sign-out"></i>Logout</span> <i
                                class="fa fa-angle-right right_icon"></i></a></li>
                </ul>
            </div>
        </div>
        <?php echo $__env->make('partials.user._bottom_menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </section>
<?php $__env->stopSection(); ?>

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