@extends('layouts.portal') @section('title', 'Network Tree - Agent Referral Structure') @section('page_title', 'Network Tree') @section('page_subtitle', 'View Agent Referral Hierarchy') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'network-tree']) @endsection @push('styles') @endpush @section('content')

Network Hierarchy

{{ count($agents) }}
Total Agents
{{ count($agents->where('status', 'active')) }}
Active
{{ count($agents->where('status', 'pending_approval')) }}
Pending
@if(count($tree) > 0) @foreach($tree as $rootAgent) @include('admin.mlm.partials.agent-tree-row', ['node' => $rootAgent, 'level' => 0]) @endforeach @else @endif
Agent Name Referred By Email Phone Status Level
No agents found in the network.
@endsection @push('scripts') @endpush