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

 <div class="nk-content">
                        <div class="container-fluid">                            <div class="nk-content-body">

                                            <div class="nk-block-between-md g-4">
                                                <div class="nk-block-head-content">
                                                    <h4 class="nk-block-title fw-normal">Invoice <code>Unpaid</code></h4>
                                                    <div class="nk-block-des"><p>Your invoice details are given below.</p></div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="nk-block">
                                            <div class="invoice">
                                                <div class="invoice-action">

                                                </div>
                                                <div class="invoice-wrap">
                                                    <div class="invoice-brand text-center"><div class="user-avadtar sm"><img src="<?php echo e(asset($power->image)); ?> " width="100"
                             alt="Avatar"></div> </div>
                                                    <div class="invoice-head">
                                                        <div class="invoice-contact">
                                                            <span class="overline-title">Invoice To</span>
                                                            <div class="invoice-contact-info">
                                                                <h4 class="title"><?php echo e($name); ?></h4>
                                                                <ul class="list-plain">
                                                                    <li>
                                                                        <em class="icon ni ni-map-pin-fill"></em>
                                                                        <span>
                                                                         <?php echo e(Auth::User()->address); ?><br />
                                                                         Company Code: <?php echo e($power->code); ?>

                                                                        </span>
                                                                    </li>
                                                                    <li><em class="icon ni ni-call-fill"></em><span><?php echo e(Auth::User()->phone); ?></span></li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                        <div class="invoice-desc">
                                                            <h3 class="title">Invoice</h3>
                                                            <ul class="list-plain">
                                                                <li class="invoice-id"><span>Invoice ID</span>:<span><?php echo e($trxcode); ?></span></li>
                                                                <li class="invoice-id"><span>Amount</span>:<span class="text-primary"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($amount, $basic->decimal)); ?></span></li>
                                                                 <li class="invoice-id"><span>TRX Charge</span>:<span class="text-primary"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($power->fee, $basic->decimal)); ?></span></li>
                                                                <li class="invoice-date"><span>Date</span>:<span><?php echo date('d M, Y', strtotime($time)); ?></span></li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                    <div class="invoice-bills">
                                                        <div class="table-responsive">
                                                            <table class="table table-striped">
                                                                <thead>
                                                                    <tr>
                                                                        <th>Item ID</th>
                                                                        <th>Description</th>
                                                                        <th>Details</th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>
                                                                    <tr>
                                                                        <td>*</td>
                                                                        <td>Decoder Type</td>
                                                                        <td><?php echo e($power->name); ?></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>*</td>
                                                                        <td>Decoder Number</td>
                                                                        <td><?php echo e($number); ?></td>
                                                                    </tr>

  <tr>
                                                                        <td>*</td>
                                                                        <td>Bouquet Plan</td>
                                                                        <td><?php echo e($plan2); ?></td>
                                                                    </tr>


                                                                </tbody>

                                                            </table>
                                                            <div class="nk-notes ff-italic fs-12px text-soft">Invoice was created on a computer and is valid without the signature and seal.</div>
                                                        </div>

                                                    <br>
                                                     <form method="post" class="buysell-form" action="<?php echo e(route('cabletvpay2')); ?>">
                                                      <?php echo csrf_field(); ?>
                                                      <input name="number" value="<?php echo e($number); ?>" hidden/>
                                                      <input name="code" value="<?php echo e($power->symbol); ?>" hidden/>
                                                      <input name="plan" value="<?php echo e($plan); ?>" hidden/>
                                                      <input name="amount" value="<?php echo e($amount + $power->fee); ?>" hidden/>
                                                      <input name="amount2" value="<?php echo e($amount); ?>" hidden/>
                                                      <input name="trx" value="<?php echo e($trxcode); ?>" hidden/>
                                                     <button class="btn btn-icon btn-lg btn-white btn-dim btn-outline-primary" type="submit"><em class="icon ni ni-wallet"></em> PAY <?php echo e($basic->currency_sym); ?><?php echo e(number_format($amount + $power->fee, $basic->decimal)); ?> &nbsp;</a>
                                                    </form>
                                                    </div>



                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <script type="text/javascript">
    if (window.performance && window.performance.navigation.type == window.performance.navigation.TYPE_BACK_FORWARD) {
        location.reload();
    }
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>