@foreach($user->recursiveReferrals as $positionedAbove) @if($loop->first) @php ++$step @endphp @endif
  • {{ $positionedAbove->fullname }} {{ $positionedAbove->email }} {{ __('Referral Pool')}} {{ $positionedAbove->referredUsers->count() }}

    @if($positionedAbove->recursiveReferrals->count() > 0 && ($step < \App\Services\Investment\MatrixService::getMatrixHeight())) @include('user.partials.tree-view',['user'=> $positionedAbove,'step'=> $step,'isFirst'=>false]) @endif
  • @endforeach