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

<section class="opay_wrap">
    <header class="header_top main_Wrap bg-white mb-0" >
        <div class="inner">
            <a class="f-16" href="<?php echo e(URL::previous()); ?>"><i class="fa fa-angle-left"></i> Team Members</a>
        </div>
    </header>
    <div class="opay_body payid_wrap bank_card_page  Refer_Friend">
        <div class="head_wrap">
            <div class="content_Wrap">
                <h3 class="f-30 text-white"><b>₦<?php echo e(number_format($gross_bonus)); ?> </b><br>Earned</h3>
                <div class="bouns_Wrap">
                    <div class="bons_left">
                        <h3 class="f-16 text-white"><b>Level 1</b></h3>
                        <h3 class="f-14 text-white"><?php echo e($level1->count()); ?> <i class="fa fa-users"></i></h3>
                    </div>
                    <div class="bons_left">
                        <h3 class="f-16 text-white"><b>Levels 2 & 3</b></h3>
                        <h3 class="f-14 text-white"><?php echo e($level2->count() + $level3->count()); ?> <i class="fa fa-users"></i></h3>
                    </div>
                </div>
            </div>
           </div>

    </div>

    <div class="opay_body payid_wrap bank_card_page mt-30">
        <div class="card">
            <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
                <li class="nav-item" role="presentation">
                    <button class="nav-link " id="pills-bank-card-tab" data-bs-toggle="pill" data-bs-target="#pills-bank-card" type="button" role="tab" aria-controls="pills-bank-card" aria-selected="true">Level 1 Members </button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link active" id="pills-bank-account-tab" data-bs-toggle="pill" data-bs-target="#pills-bank-account" type="button" role="tab" aria-controls="pills-bank-account" aria-selected="false">Level 2 Members</button>
                </li>
                <li class="nav-item" role="presentation">
                    <button class="nav-link" id="pills-bank-account-tab" data-bs-toggle="pill" data-bs-target="#pills-bank-accounts" type="button" role="tab" aria-controls="pills-bank-account" aria-selected="false">Level 3 Members</button>
                </li>
            </ul>
            <div class="tab-content" id="pills-tabContent">
                <div class="tab-pane fade  " id="pills-bank-card" role="tabpanel" aria-labelledby="pills-bank-card-tab">

                    <div class="opay_body payid_wrap bank_card_page  Refer_Friend">

                    <?php $__currentLoopData = $level1a; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="accout_page_body pt-0">
                    <div class="card">
                        <ul>
                            <li class="mb-0">
                                <a> <span class="left_text"><i class="fa fa-user"></i> </span><span class="text_inner"><?php echo e(substr($item->mobile, 0, 2)); ?>*****<?php echo e(substr($item->mobile, -4)); ?> <small><?php echo e($item->created_at); ?></small></span></a>
                            </li>
                        </ul>
                    </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </div>


                </div>
                <div class="tab-pane fade bank-account active show" id="pills-bank-account" role="tabpanel" aria-labelledby="pills-bank-account-tab">

                    <div class="opay_body payid_wrap bank_card_page  Refer_Friend">

                    <?php $__currentLoopData = $level2a; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="accout_page_body pt-0">
                    <div class="card">
                        <ul>
                            <li class="mb-0">
                                <a> <span class="left_text"><i class="fa fa-user"></i> </span><span class="text_inner"><?php echo e(substr($item->mobile, 0, 2)); ?>*****<?php echo e(substr($item->mobile, -4)); ?> <small><?php echo e($item->created_at); ?></small></span></a>
                            </li>
                        </ul>
                    </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </div>


                </div>
                <div class="tab-pane fade  " id="pills-bank-accounts" role="tabpanel" aria-labelledby="pills-bank-card-tabs">

                    <div class="opay_body payid_wrap bank_card_page  Refer_Friend">

                    <?php $__currentLoopData = $level3a; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="accout_page_body pt-0">
                    <div class="card">
                        <ul>
                            <li class="mb-0">
                                <a> <span class="left_text"><i class="fa fa-user"></i> </span><span class="text_inner"><?php echo e(substr($item->mobile, 0, 2)); ?>*****<?php echo e(substr($item->mobile, -4)); ?> <small><?php echo e($item->created_at); ?></small></span></a>
                            </li>
                        </ul>
                    </div>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </div>


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





</section>

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

<?php echo $__env->make('layouts.users', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/AMPPS/www/palmpay/core/resources/views/templates/basic/user/referrals.blade.php ENDPATH**/ ?>