@extends('layouts.portal') @section('title', 'Commission Hierarchy Report') @section('page_title', 'Commission Hierarchy Report') @section('page_subtitle', 'L1, L2, L3 Agent Structure with Earnings') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'reports-master']) @endsection @section('content')
Agent Network Structure (L1, L2, L3) with Commission Tracking
Total Agents
{{ collect($hierarchyDataPaginated)->count() + (($hierarchyDataPaginated->currentPage() - 1) * 15) }}
L1 Agents
{{ $hierarchyData->where('agent_level', 'L1')->count() }}
L2 Agents
{{ $hierarchyData->where('agent_level', 'L2')->count() }}
L3 Agents
{{ $hierarchyData->where('agent_level', 'L3')->count() }}
| Will ID | Client Name | Direct Agent (Level) | Agent Email | Agent Phone | L1 Parent Agent | L2 Parent Agent | L1 Comm (RM) | L2 Comm (RM) | L3 Comm (RM) | Total Comm | Status | Will Date |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item['will_id'] }} | {{ $item['client_name'] }} | {{ $item['direct_agent'] }} | {{ $item['agent_email'] }} | {{ $item['agent_phone'] }} | {{ $item['l1_parent_name'] }} | {{ $item['l2_parent_name'] }} |
RM {{ number_format($item['l1_commission'], 2) }}
{{ $item['l1_receives_by'] }}
|
RM {{ number_format($item['l2_commission'], 2) }}
{{ $item['l2_receives_by'] }}
|
RM {{ number_format($item['l3_commission'], 2) }}
{{ $item['l3_receives_by'] }}
|
{{ $item['total_commission'] }} | {{ $item['status'] }} | {{ $item['created_date'] }} |
| No commissions found | ||||||||||||