{{ __('Direct Referrals') }}

Patient Referrals

{{ $totalPatients }}

Business Referrals

{{ $totalBusinesses }}

Your Referral Links

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

Share these links with potential patients and businesses to earn commissions.

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

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

@endforeach
Business Referral Link
Business Referral

Share this link with potential businesses.

@else

Your agent account is pending approval. You'll be able to generate referral links once approved.

@endif

Patients Referred by You

@if($patients->isEmpty())

You haven't referred any patients yet.

Use your patient referral links to invite patients to join.

@else
@foreach($patients as $patient) @endforeach
Patient Status Joined Subscription
{{ $patient->name }}
{{ $patient->email }}
{{ ucfirst(str_replace('_', ' ', $patient->status)) }} {{ $patient->created_at->format('M d, Y') }} @if($patient->subscriptions->count() > 0) {{ ucfirst($patient->subscriptions->first()->status) }} @else No subscription @endif
{{ $patients->links() }}
@endif

Businesses Referred by You

@if($businesses->isEmpty())

You haven't referred any businesses yet.

Use your business referral link to invite businesses to join.

@else
@foreach($businesses as $business) @endforeach
Business Contact Joined Plans
{{ $business->name }}
{{ $business->email }}
@if($business->users->count() > 0)
{{ $business->users->first()->name }}
{{ $business->users->first()->email }}
@else No admin user @endif
{{ $business->created_at->format('M d, Y') }} @if($business->plans->count() > 0)
{{ $business->plans->count() }} active plans
{{ $business->plans->sum('plan_quantity') }} total seats
@else No active plans @endif
{{ $businesses->links() }}
@endif