<?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>



    <style type="text/css">
        .topname {
            line-height: 46px;
            width: 75%;
            text-align: center;
            color: #fff;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            margin: auto;
            font-size: 14px;
        }
    </style>

    <body style="background-size: 100% auto; background: #f1f1f1;">
        <div class="top" style="background: #000; ">
            <div style="float:left; line-height:46px;width:50%;cursor:pointer;" id="btnClose">
                <i class="layui-icon" style="color:#fff;  margin-left:12px; font-size:16px;  font-weight:bold;">&#xe603;</i>
            </div>
            <font class="topname">
                My device
            </font>
            <div style="float:right; text-align:right; line-height:46px;width:50%;">
            </div>
        </div>
        <div style=" max-width:450px; margin:0 auto; position:relative; ">

            <div style="width:100%; margin:0 auto; margin-top:50px;">
                
                <div style="border-radius: 5px; padding:5px;  margin-top:10px;  background:#fff; text-align:center;position:relative;"
                    id="list">
                    <?php $__currentLoopData = $logs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div
                        style="background:#fff;width: 99%; margin: 0 auto; height: 160px; overflow: hidden; margin-top:
                        10px; position: relative;border-radius: 5px !important;">
                        <div style="padding:10px; padding-top:15px; color:#000; text-align:left; font-weight:bold;
                            font-size:14px;"><?php echo e(strtoupper($plan->plan->name)); ?></div>
                        <div style="padding:5px 10px;color:#000; text-align:left;font-size:12px;">
                            <font class='small-font'>Validity period: </font>
                            <font style='color:rgb(33,63,175);'> <?php echo e($plan->total_return); ?> </font> day
                        </div>
                        <div style="padding: 5px 10px; color: #000; text-align: left; font-size: 12px;">
                            Daily income: <font style='color:rgb(33,63,175);'>₦ <?php echo e(number_format($plan->interest_amount)); ?></font>

                        </div>
                        <div style="padding: 5px 10px; color: #000; text-align: left; font-size: 12px;">
                            Total income: <font style='color:rgb(33,63,175);'>₦ <?php echo e(number_format($plan->interest_amount * $plan->total_return,2)); ?></font>

                        </div>
                        <div style="padding: 5px 10px; color: #000; text-align: left; font-size: 12px;">
                            Created time: <?php echo e($plan->created_at->format('d/M/Y h:i a')); ?>

                        </div>
                        <div style="background:#005AFF; border: 0px; position: absolute; font-size: 12px; right: 10px;
                            bottom: 10px; width: 80px; height: 25px; line-height: 27px; border: 1px solid #005AFF; color:
                            #fff; border-radius: 25px;">
                            Working
                        </div>

                        <div class='' style="background: none; text-align:center; border: 0px; position: absolute;
                            font-size: 14px; right: 2px; top: 5px; width: 105px; height: 25px; line-height: 27px; color:
                            #000; border-radius: 25px;">
                            <font style='color:rgb(33,63,175);'>₦ <?php echo e(number_format($plan->amount)); ?> </font>
                        </div>

                        
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


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

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