<?php $__env->startPush('style'); ?>
<?php $__env->stopPush(); ?>



<?php $__env->startSection('content'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('static/index/v1/css/order.css')); ?>">


    <script>
        "use strict"

        function createCountDown(elementId, sec) {
            var tms = sec;
            var x = setInterval(function() {
                var distance = tms * 1000;
                var days = Math.floor(distance / (1000 * 60 * 60 * 24));
                var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
                var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
                var seconds = Math.floor((distance % (1000 * 60)) / 1000);
                document.getElementById(elementId).innerHTML = days + "d: " + hours + "h " + minutes + "m " +
                    seconds + "s ";
                if (distance < 0) {
                    clearInterval(x);
                    document.getElementById(elementId).innerHTML = "COMPLETE";
                }
                tms--;
            }, 1000);
        }
    </script>


    <body>
        <img src="<?php echo e(asset('uploads/material/logo.png')); ?>" class="logo" alt="">
        <a href="<?php echo e($general->telegram_chat_id); ?>" class="kfimg" style="z-index: 999">
            <img src="<?php echo e(asset('uploads/material/kf.png')); ?>" alt="">
        </a>

        <div class="centeritem">
            <div class="flex_be">
                <div class="orderuser">
                    <img class="orderbg" src="<?php echo e(asset('uploads/material/orderbg.png')); ?>" alt="">
                    <div class="orderinfo">
                        <p class="userid">ID <span>|</span> <?php echo e($user->mobile); ?></p>
                        <p class="userbalance">Total Balance</p>
                        <h5><?php echo e($general->cur_sym); ?><?php echo e(number_format($user->bonus_balance)); ?></h5>
                    </div>
                </div>
                <div class="greenbox">
                    <img class="balanceicon" src="<?php echo e(asset('uploads/material/icon.png')); ?>" alt="">
                    <p class="already">Already Returned</p>
                    <h5><?php echo e($general->cur_sym); ?><?php echo e($user->total_earnings); ?></h5>
                    <div class="cons flex_cen">
                        <img src="<?php echo e(asset('uploads/material/topicon.png')); ?>" alt="">
                        <div>
                            <p><?php echo e($general->cur_sym); ?><?php echo e(number_format($income)); ?> <br>
                                Daily Income</p>
                        </div>
                    </div>
                </div>
            </div>
            <p class="itshows">It shows "0/X days" when you've just purchased and activated the product as its first day of
                operating hasn't ended yet. It will turns to 1/X at the time of 0 PM, which is the time every product
                returns the daily income to the client's balance.</p>
        </div>
        <div class="detaillist">
            <p class="modaltitle">Detail</p>

            <ul class="orderlist">

                <?php $__currentLoopData = $logs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li class="flex_be">
                        <div class="orderleft">
                            <div class="flex_be">
                                <p>Time:</p><span><?php echo e($plan->created_at); ?></span>
                            </div>
                            <div class="flex_be">
                                <p>NO*:</p><span><?php echo e($plan->trx); ?></span>
                            </div>
                            <div class="flex_be">
                                <p>Product:</p><span><?php echo e($plan->name); ?></span>
                            </div>
                            <div class="flex_be">
                                <p>Price:</p><span><?php echo e($general->cur_sym); ?><?php echo e(number_format($plan->amount)); ?></span>
                            </div>
                            <div class="flex_be">
                                <p>Daily ROI:</p><span><?php echo e(round(($plan->interest_amount / $plan->amount) * 100)); ?>%</span>
                            </div>
                            <div class="flex_be">
                                <p>Daily Return:</p><span><?php echo e($general->cur_sym); ?><?php echo e(number_format($plan->interest_amount)); ?></span>
                            </div>
                            <div class="flex_be">
                                <p>Total Return:</p><span><?php echo e($general->cur_sym); ?><?php echo e(number_format($plan->interest_amount*$plan->total_return)); ?></span>
                            </div>
                        </div>
                        <div class="orderright">
                            <p class="orderdays"> <span><?php echo e($plan->total_paid); ?></span> /<?php echo e($plan->total_return); ?> days</p>
                            <p class="duration">Duration</p>
                            <img class="orderline" src="<?php echo e(asset('uploads/material/orderline.png')); ?>" alt="">
                            <p class="dailyroi"><?php echo e($general->cur_sym); ?><?php echo e(number_format($plan->interest_amount*$plan->total_paid)); ?></p>
                            <p class="duration">Already Return</p>
                        </div>
                        <div class="posipointtop"></div>
                        <div class="posipointbottom"></div>
                        <div class="statustordertips">
                            <img src="<?php echo e(asset('uploads/material/order_active.png')); ?>" alt="">
                            <div>Activated</div>
                        </div>
                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


            </ul>
        </div>
        <div class="footer flex_be">
            <a href="<?php echo e(route('user.home')); ?>">
                <img src="<?php echo e(asset('uploads\material\20250411\f009397ad7700e00d7a6d8189fefe4d3.png')); ?>" alt="">
                <p>Home</p>
            </a>
            <a href="<?php echo e(route('user.investment.log')); ?>" class="on">
                <img src="<?php echo e(asset('uploads\material\20250411\e3e7b8076faf176504314f2082628ea6.png')); ?>" alt="">
                <p>Order</p>
            </a>
            <a href="<?php echo e(route('user.profile.setting')); ?>">
                <img src="<?php echo e(asset('uploads\material\20250411\fa0eed652edb4df4c344aa74ef9328ac.png')); ?>" alt="">
                <p>Me</p>
            </a>

        </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/photowatt/core/resources/views/templates/basic/user/investment_log.blade.php ENDPATH**/ ?>