<?php $__env->startSection('content'); ?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-lg-12 ">

                    <div class="card"
                        style="box-shadow: 0 4px 8px 0 rgb(146 140 175);transition: 0.3s;border: 1px solid #ffefef;">
                        <div class="card-body">

                                <br><br>
                                <div class="col-md-4 offset-md-4">
                                    <div style="border: 1px solid #000;border-radius:12px;" class="card m-4 text-center">
                                        <div class="card-body">
                                            <div class="media">
                                                <div class="media-body overflow-hidden">


                                                    <p class="text-truncate font-size-14 mb-2 text-center">Your Balance Remaining</p>
                                                    <h4 class="mb-0">$<?php echo e(round($balance ? $balance : 0, 3)); ?></h4>
                                                </div>
                                                <div class="text-primary">
                                                    <i class="ri-money-euro-circle-fill font-size-40"></i>
                                                </div>
                                            </div>
                                        </div>


                                    </div>

                                </div>

                                <div class="progress">
                                    <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar"
                                        aria-valuemin="0" aria-valuemax="100"
                                        style="width: <?php echo e(round($qry ? $qry : 0, 2)); ?>%"></div>
                                </div>

                                <br>
                                <p class="card-title-desc text-center">From our Payments Department you can see all your payment histroy
                                </p>



                                <div class="table-responsive ">
                                    <table class="table table-bordered table-striped w-100" id="example">
                                        <thead>
                                            <th>Date</th>
                                            <th>Amount</th>
                                            <th>Method</th>
                                            <th>Payment Detail</th>

                                            <th>Payment Cycle</th>
                                            <th style="width:130px;">Status</th>
                                            <th>Invoice</th>



                                        </thead>

                                        <tbody>
                                            <?php $__currentLoopData = $phistoy; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $q): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e($q->created_at); ?></td>
                                                    <td><?php echo e(round($q->amount, 2)); ?></td>
                                                    <td><?php echo e($q->method); ?></td>
                                                    <td><?php echo e($q->payment_details); ?></td>

                                                    <td><?php echo e($q->payterm); ?></td>
                                                    <td>


                                                        <?php echo e($q->status); ?></td>
                                                    <td> <?php if(!empty($q->doc)): ?>
                                                            <a href="<?php echo e(asset('https://kingsofaffiliate.com/aff/backend/public/uploads/'.$q->doc)); ?>" download><img style="width: 40px; height: 40px;" src="https://kingsofaffiliate.com/aff/backend/public/invoice.jpeg" /></a>
                                                        <?php endif; ?></td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                        </tbody>
                                    </table>



                                </div>

                        </div>
                    </div>
                <?php $__env->stopSection(); ?>
                <?php $__env->startSection('js'); ?>
                <?php $__env->stopSection(); ?>

<?php echo $__env->make('publisher.layout.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bdbse/public_html/backend/resources/views/publisher/payment_history.blade.php ENDPATH**/ ?>