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



<?php $__env->startSection('content'); ?>
    <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>

    <link rel="stylesheet" href="<?php echo e(asset('static/tree/css/leasing.css')); ?>">

    <body>
        <div class="leasing-wrap">
            <h1>leasing </h1>

            <?php $__empty_1 = true; $__currentLoopData = $logs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <ul>
                    <li>
                        <img src="<?php echo e(asset('assets/images/logoIcon/logo.png')); ?>" alt="">
                        <div class="centent">
                            <h3><b>₦<?php echo e(number_format($order->amount)); ?></b> /<?php echo e($order->total_return); ?> Days</h3>
                            <p>
                                <img src="<?php echo e(asset('static/tree/img/dailyincome@2x.png')); ?>" alt="">
                                <span>daily income</span>
                                <b>₦<?php echo e(number_format($order->interest_amount)); ?></b>
                            </p>
                            <p>
                                <img src="<?php echo e(asset('static/tree/img/rateofreturn@2x.png')); ?>" alt="">
                                <span>rate of return</span>
                                <b><?php echo e(round(($order->interest_amount / $order->amount) * 100, 2)); ?>%</b>
                            </p>
                            <p>
                                <img src="<?php echo e(asset('static/tree/img/totalincome@2x.png')); ?>" alt="">
                                <span>total income</span>
                                <b>₦<?php echo e(number_format($order->interest_amount * $order->plan->total_return)); ?></b>
                            </p>
                        </div>
                    </li>
                </ul>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>


                <!-- nodata -->
                <div class="nodata">
                    <img src="<?php echo e(asset('static/tree/img/nodata.png')); ?>" alt="">
                    <p>
                        You haven’t rented any <br>
                        investment products yet!
                    </p>
                    <a href="<?php echo e(route('user.home')); ?>">
                        <div class="btn">I want to rent</div>
                    </a>
                    <br>
                    <br>
                </div>
            <?php endif; ?>




        </div>
    </body>
    <script>
        $(function() {
            // tabBar
            tabBarActive(2);
            // 客服
            // kfDom();
        });
    </script>

    <?php echo $__env->make('templates.basic.partials.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>

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