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

<?php $__env->startSection('profile-content'); ?>
    <?php if(count($payments)): ?>
    <div class="card">
        <div class="card-body">
            <table class="table table-bordered table-striped table-hover table-responsive">
                <thead>
                    <tr>
                        <th><?php echo e(__('ID')); ?></th>
                        <th><?php echo e(__('Plan')); ?></th>
                        <th><?php echo e(__('Coupon')); ?></th>
                        <th><?php echo e(__('Amount')); ?></th>
                        <th><?php echo e(__('Currency')); ?></th>
                        <th><?php echo e(__('Type')); ?></th>
                        <th><?php echo e(__('Gateway')); ?></th>
                        <th><?php echo e(__('Transaction ID')); ?></th>
                        <th><?php echo e(__('Status')); ?></th>
                        <th><?php echo e(__('Transaction Date')); ?></th>
                        <th><?php echo e(__('Invoice')); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($value->id); ?></td>
                            <td><?php echo e($value->plan->name); ?></td>
                            <td><?php echo e($value->coupon ? $value->coupon->name : '-'); ?></td>
                            <td><?php echo e($value->amount); ?></td>
                            <td><?php echo e($value->currency); ?></td>
                            <td><?php echo e($value->interval); ?></td>
                            <td><?php echo e($value->gateway); ?></td>
                            <td><?php echo e($value->payment_id); ?></td>
                            <td><?php echo e($value->status); ?></td>
                            <td><?php echo e($value->created_at); ?></td>
                            <th><a href="<?php echo e(route('profile.invoice',$value->id)); ?>" target="_blank"><i class="fa fa-eye info" title="<?php echo e(__('Click to view invoice.')); ?>"></i></a></th>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <tfoot>
                    <tr>
                        <th><?php echo e(__('ID')); ?></th>
                        <th><?php echo e(__('Plan')); ?></th>
                        <th><?php echo e(__('Coupon')); ?></th>
                        <th><?php echo e(__('Amount')); ?></th>
                        <th><?php echo e(__('Currency')); ?></th>
                        <th><?php echo e(__('Type')); ?></th>
                        <th><?php echo e(__('Gateway')); ?></th>
                        <th><?php echo e(__('Transaction ID')); ?></th>
                        <th><?php echo e(__('Status')); ?></th>
                        <th><?php echo e(__('Transaction Date')); ?></th>
                        <th><?php echo e(__('Invoice')); ?></th>
                    </tr>
                </tfoot>
            </table>
            <div class="card-footer">
                <div class="float-right">
                    <?php echo e($payments->links()); ?>

                </div>
            </div>
        </div>
    </div>
    <?php else: ?>
        <p><?php echo e(__('Your payment history will appear here.')); ?></p>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('profile.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/originsuiteai/webinar.originsuiteai.com/resources/views/profile/payments/index.blade.php ENDPATH**/ ?>