


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


<link href="<?php echo e(asset('assets/admin/vendor/datatables/dataTables.bootstrap4.min.css')); ?>" rel="stylesheet">

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

<?php $__env->startSection('content'); ?>
    <!-- User Dashboard Area Start -->
    <section class="user-dashboard">
        <div class="user-dashboard-menu-area">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <h4 class="heading-title">
                            <?php echo e(__('Referral Program')); ?>

                        </h4>
                        <?php echo $__env->make('student.includes.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="user-dashboard-content-area">



            <div class="container">
				<div class="row">
					<div class="col-lg-12">
						<div class="purchase-list">
                            <?php if($refer != null): ?>
                            <p class="mb-4">
                                <b><?php echo e(__('Current Discount')); ?>:</b> <?php echo e($refer->discount); ?>%
                            </p>
                            <?php endif; ?>
							<div class="table-responsive">

								<table id="myTable" class="table table-bordered">
									<thead>
										<tr>
											<th><?php echo e(__('Title')); ?></th>
											<th><?php echo e(__('Times')); ?>(#)</th>
											<th><?php echo e(__('Discount')); ?>(%)</th>
										</tr>
									</thead>
									<tbody>
										<?php $__currentLoopData = $refers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ref): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										  <tr class="conv">
                                            <td><?php echo e($ref->title); ?></td>
                                            <td><?php echo e($ref->times); ?></td>
                                            <td><?php echo e($ref->discount); ?></td>
										  </tr>
										<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
        </div>
    </section>
	<!-- User Dashboard Area End -->




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

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


<script src="<?php echo e(asset('assets/admin/vendor/datatables/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/admin/vendor/datatables/dataTables.bootstrap4.min.js')); ?>"></script>



<script type="text/javascript">

$('#myTable').DataTable({
			   ordering: false,

            });


            $(function() {
            $(".btn-area").append('<div class="col-sm-12 col-md-4 pr-3 text-right">'+
              '<a class="btn btn-primary"  href="<?php echo e(route('student-affilate-history')); ?>"><?php echo e(__("Referral History")); ?></a>'+
            '</div>');
        });



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

<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/royaldem/public_html/project/resources/views/student/affilate/index.blade.php ENDPATH**/ ?>