@extends('admin_pages_master') @section('content')

{{ $marketer->first_name }} {{ $marketer->last_name }}'s Commission

Back
@include('alert')
Marketer Information

Name: {{ $marketer->first_name }} {{ $marketer->last_name }}

Email: {{ $marketer->email }}

Type: {{ ucfirst($marketer->type) }}

Total Referrals: {{ $totalReferrals }} vendors

Lifetime Stats

Total Lifetime Earnings: ₦{{ number_format($lifetimeEarnings, 2) }}

Member Since: {{ $marketer->created_at->format('M d, Y') }}

This Month Total

₦{{ number_format($totalEarnings, 2) }}

{{ date('F Y', mktime(0, 0, 0, $currentMonth, 1, $currentYear)) }}
Paid This Month

₦{{ number_format($paidEarnings, 2) }}

Successfull
Reset
Commission Details - {{ date('F Y', mktime(0, 0, 0, $currentMonth, 1, $currentYear)) }}
@if($monthlyCommissions->count() > 0)
@foreach($monthlyCommissions as $commission) @endforeach
Date Vendor Subscription Commission Rate Commission Earned Status
{{ $commission->earned_date->format('M d, Y') }} @if($commission->vendor)
{{ $commission->vendor->first_name }} {{ $commission->vendor->last_name }}
{{ $commission->vendor->email }}
@else N/A @endif
₦{{ number_format($commission->subscription_amount, 2) }} {{ $commission->commission_rate }}% ₦{{ number_format($commission->commission_amount, 2) }} @if($commission->status == 'pending') Pending @else @endif
@foreach($monthlyCommissions as $commission)
{{ $commission->earned_date->format('M d, Y') }} @if($commission->status == 'pending') Pending @else @endif
@if($commission->vendor) {{ $commission->vendor->first_name }} {{ $commission->vendor->last_name }}
{{ $commission->vendor->email }} @else N/A @endif
Subscription: ₦{{ number_format($commission->subscription_amount, 2) }}
Commission ({{ $commission->commission_rate }}%): ₦{{ number_format($commission->commission_amount, 2) }}
@endforeach
@else

No commissions yet

No commissions found for {{ date('F Y', mktime(0, 0, 0, $currentMonth, 1, $currentYear)) }}.

Commissions will appear here when this marketer's referred vendors make subscription payments.

@endif
@endsection @section('scripts') @endsection