{{ __('My Referrals') }}

Direct Agent Referrals

Agents you have directly referred to the platform.

@if($referrals->count() > 0)
@foreach($referrals as $referral) @endforeach
Name Email Tier Commission Rate Status Registered
{{ $referral->user->name }}
{{ $referral->user->email }}
{{ $referral->tier }} {{ $referral->commission_rate }}% {{ ucfirst($referral->status) }} {{ $referral->created_at->format('M d, Y') }}
{{ $referrals->links() }}
@else

No agent referrals yet

Get started by sharing your referral links below.

@endif

Complete Downline Hierarchy

Your entire agent network including multi-level referrals. This shows where your hierarchical commissions come from.

@if(count($flattenedDownline) > 0)
@foreach($flattenedDownline as $item) @php $downlineAgent = $item['agent']; $level = $item['level']; $indent = str_repeat('└── ', $level - 1); // Calculate potential commission differential $commissionDifferential = $agent->commission_rate - $downlineAgent->commission_rate; $yourCommissionText = $commissionDifferential > 0 ? $commissionDifferential . '% differential' : 'No commission'; @endphp @endforeach
Level Name Email Tier Commission Rate Your Commission Status
Level {{ $level }}
{{ $indent }}{{ $downlineAgent->user->name }}
{{ $downlineAgent->user->email }}
{{ $downlineAgent->tier }} {{ $downlineAgent->commission_rate }}% @if($commissionDifferential > 0) {{ $yourCommissionText }} @else {{ $yourCommissionText }} @endif {{ ucfirst($downlineAgent->status) }}
@else

No downline network yet

Your referred agents haven't made any referrals yet.

@endif

Network Statistics

Overview of your complete agent network and commission potential.

Total Network

{{ $downlineStats['total_agents'] }}

agents in your downline

Network by Tier

@foreach($downlineStats['by_tier'] as $tier => $count)
{{ $tier }} {{ $count }}
@endforeach

Network by Level

@foreach($downlineStats['by_level'] as $level => $count)
Level {{ $level }} {{ $count }}
@endforeach
@if(count($flattenedDownline) > 0)

Commission Information

You earn commission differentials from all agents in your downline based on the difference between your commission rate ({{ $agent->commission_rate }}%) and theirs. The "Your Commission" column shows your potential differential rate from each agent's transactions.

@endif

Referral Statistics

Total Referrals
{{ $referrals->total() }}
Approved Referrals
{{ $referrals->where('status', 'approved')->count() }}
Pending Referrals
{{ $referrals->where('status', 'pending')->count() }}

Your Referral Links

@if($agent->status === 'approved')

Share these links with potential agents. You can control which tier they'll be assigned by using the tier-specific links below.

General Referral Link:

This link allows the referred agent to choose from any available tier.

Referral Code: {{ $agent->referral_code }}

Tier-Specific Referral Links:

Use these links to control which tier your referred agents will be assigned to.

@foreach($agent->generateTierSpecificReferralUrls() as $tier => $tierData)
{{ $tier }} Tier ({{ $tierData['rate'] }}%)
{{ $tierData['rate'] }}% Commission

This link will automatically assign the {{ $tier }} tier to your referred agent.

@endforeach

Patient Referral Links:

Share these links with potential patients. You'll earn commission when they sign up and make a purchase.

@foreach($agent->generatePatientReferralUrls() as $key => $patientData)
{{ $patientData['name'] }}
Patient Referral

Share this link with potential patients for {{ $patientData['name'] }}.

@endforeach

Business Referral Link:

Share this link with potential businesses. You'll earn commission when they sign up for a business plan.

Business Registration
Business Referral

Share this link with businesses looking to register for the platform.

@else

Your referral links will be available once your account is approved.

@endif