@extends('User.layout') @section('content')

Genealogy Royalty 5 Star  Qualification

Once eligible, you receive 12 months of royalty income — with no deadline to qualify.
Back to Dashboard
@php $royalty = collect($result['users'] ?? []) ->firstWhere('user_id', auth()->user()->user_id); $selfInvestment = $royalty['selfInvestment'] ?? 0; $eligibleDirectCount = $royalty['eligibleDirectCount'] ?? 0; $validLegs = $royalty['validLegs'] ?? 0; $legVolumes = $royalty['legVolumes'] ?? []; $legNames = ['First', 'Second', 'Third']; $step1 = $royalty['step1'] ?? false; $step2 = $royalty['step2'] ?? false; $step3 = $royalty['step3'] ?? false; $eligible = $royalty['eligible'] ?? false; $completedSteps = collect([$step1,$step2,$step3])->filter()->count(); @endphp
Eligibility Status :
{{ $royaltyMonthsGiven ?? 0 }} / 12
@if($eligible) Royalty Eligible @else In Progress @endif
3 Conditions to Unlock Royalty
1
Self Investment — ₹1,00,000 (1L)

Activate your own account with a minimum investment of 1 Lakh.

Current: ₹{{ number_format($selfInvestment) }} Required: ₹1,00,000
2
4 Active Direct Referrals

Each of your 4 direct referrals must also invest a minimum of ₹1,00,000 (1L).

Active Referrals: {{ $eligibleDirectCount }} / 4 Required: 4
3
5 Star — Team Leg Volume

Build ₹15,00,000 (15L) business volume in each of your 3 legs.

@php $sortedLegVolumes = $legVolumes; rsort($sortedLegVolumes, SORT_NUMERIC); // Highest to Lowest @endphp @for($i = 0; $i < 3; $i++)
{{ $legNames[$i] }} Leg
₹15L
Current : ₹{{ number_format($sortedLegVolumes[$i] ?? 0) }}
@endfor
@endsection