@extends('layouts.app') @section('title', 'Genealogy Network') @section('content')

Genealogy Network

View and manage the MLM hierarchy

{{ number_format($stats['total_agents']) }}
Total Agents
{{ number_format($stats['root_agents']) }}
Root Agents (No Upline)
{{ number_format($stats['with_upline']) }}
With Upline
@if($rootAgentId) Show All Roots @endif
@if($rootAgents->count() > 0)
@foreach($rootAgents as $agent)
@include('agents.partials.genealogy-node-lazy', ['agent' => $agent, 'depth' => 0])
@endforeach
@if(!$rootAgentId && $stats['root_agents'] > 50)
Showing first 50 root agents. Use search to find specific agents.
@endif @else

No agents found

Add agents to see the network hierarchy.

@endif
@endsection