<?php $__env->startSection('title', $user->name . ' | ' . admin_trans('Referrals')); ?>
<?php $__env->startSection('back', route('admin.members.users.index')); ?>
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-3">
            <?php echo $__env->make('backend.members.users.includes.list', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-lg-9">
            <div class="card">
                <table id="datatable" class="table w-100">
                    <thead>
                        <tr>
                            <th class="tb-w-3x">#</th>
                            <th class="tb-w-7x"><?php echo e(admin_trans('User')); ?></th>
                            <th class="tb-w-3x"><?php echo e(admin_trans('Earnings')); ?></th>
                            <th class="tb-w-7x"><?php echo e(admin_trans('Date')); ?></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $referrals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $referral): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($referral->id); ?></td>
                                <td>
                                    <a href="<?php echo e(route('admin.members.users.edit', $referral->referred_user->id)); ?>">
                                        <i class="fa fa-user me-2"></i>
                                        <?php echo e($referral->referred_user->username); ?>

                                    </a>
                                </td>
                                <td><?php echo e(earnings($referral->earnings)); ?></td>
                                <td><?php echo e(dateFormat($referral->created_at)); ?></td>
                                <td>
                                    <form
                                        action="<?php echo e(route('admin.members.users.referrals.destroy', [$user->id, $referral->id])); ?>"
                                        method="POST">
                                        <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                                        <button class="btn btn-danger vironeer-able-to-delete btn-sm"><i
                                                class="fa-regular fa-trash-can"></i></button>
                                    </form>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.grid', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/neofiles.codenine.biz.id/resources/views/backend/members/users/edit/referrals.blade.php ENDPATH**/ ?>