<?php $__env->startSection('content'); ?>
    <!-- Basic Data Tables -->
    <!--===================================================-->
    <div class="panel">
        <div class="panel-heading bord-btm clearfix pad-all h-100">
            <h3 class="panel-title pull-left pad-no"><?php echo e(__('Refferal Users')); ?></h3>
        </div>
        <div class="panel-body">
            <table class="table table-striped res-table mar-no" cellspacing="0" width="100%">
                <thead>
                <tr>
                    <th>#</th>
                    <th><?php echo e(__('Name')); ?></th>
                    <th><?php echo e(__('Phone')); ?></th>
                    <th><?php echo e(__('Email Address')); ?></th>
                    <th><?php echo e(__('Reffered By')); ?></th>
                </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $refferal_users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $refferal_user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($refferal_user != null): ?>
                        <tr>
                            <td><?php echo e(($key+1) + ($refferal_users->currentPage() - 1)*$refferal_users->perPage()); ?></td>
                            <td><?php echo e($refferal_user->name); ?></td>
                            <td><?php echo e($refferal_user->phone); ?></td>
                            <td><?php echo e($refferal_user->email); ?></td>
                            <td>
                                <?php if(\App\User::find($refferal_user->referred_by) != null): ?>
                                    <?php echo e(\App\User::find($refferal_user->referred_by)->name); ?> (<?php echo e(\App\User::find($refferal_user->referred_by)->email); ?>)
                                <?php endif; ?>
                            </td>
                        </tr>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
            <div class="clearfix">
                <div class="pull-right">
                    <?php echo e($refferal_users->appends(request()->input())->links()); ?>

                </div>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp73\htdocs\shop\resources\views/affiliate/refferal_users.blade.php ENDPATH**/ ?>