@extends('distributor.layouts.app') @section('title', 'My Commissions') @section('content')
Total Earnings
৳{{ number_format($totalEarnings, 2) }}
This Month
৳{{ number_format($monthlyEarnings, 2) }}
Total Transactions
{{ $commissions->total() }}
Average per Transaction
৳{{ $commissions->total() > 0 ? number_format($totalEarnings / $commissions->total(), 2) : '0.00' }}
PV Bonus
৳{{ number_format($summary['pv_bonus'] ?? 0, 2) }}
No commissions earned yet
Start sponsoring and building your team to earn bonuses!
| Date | Type | From | Amount | Description |
|---|---|---|---|---|
|
{{ $commission->created_at->format('d M, Y') }}
{{ $commission->created_at->diffForHumans() }}
|
{{ $commission->getTypeText() }} | @if($commission->fromUser) {{ $commission->fromUser->name }} ({{ $commission->fromUser->user_code ?? 'N/A' }}) @else System @endif | +৳{{ number_format($commission->amount, 2) }} |
@if($commission->commission_type == 'pv_bonus')
Product PV Earnings from Order
@else
{{ $commission->description ?? 'Commission earned' }}
@endif
@if($commission->order_id)
Order #{{ $commission->order?->order_number ?? $commission->order_id }} @endif @if($commission->pv_matched) PV: {{ number_format($commission->pv_matched, 2) }} @endif @if($commission->generation_level > 0) Level: {{ $commission->generation_level }} @endif |