@extends('layouts.portal') @section('title', 'Hierarchy Report') @section('page_title', 'Hierarchy Report') @section('page_subtitle', 'Your referral network — upline, downline, and commission at every level') @section('sidebar') @include('agent.partials.sidebar', ['active' => 'reports-hierarchy']) @endsection @section('content')
You and your downline, up to {{ config('mlm.max_levels', 3) }} levels deep
Agents in Your Tree
Total Referred Clients
Total Commission
| Agent | Code | Level | Upline | Downline | Referred Clients | Commission | Status | Clients | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $node['agent_name'] }} @if($node['level'] === 0)(You)@endif | {{ $node['agent_code'] ?? '—' }} | {{ $node['level'] === 0 ? 'Self' : 'L' . $node['level'] }} | {{ $node['upline_name'] ?? '—' }} | {{ $node['downline_count'] }} | {{ $node['total_referred_clients'] }} |
RM {{ number_format($node['commission_total'], 2) }} Paid: {{ number_format($node['commission_paid'], 2) }} / Pending: {{ number_format($node['commission_pending'], 2) }} |
{{ ucfirst($node['status'] ?? '-') }} | |||||||||
@if(count($node['clients']))
No clients referred by this agent yet. @endif |
||||||||||||||||
| No downline agents yet | ||||||||||||||||