@extends('layouts.base') @section('title','Earnings & payouts') @section('body') @php($money = fn($value) => 'KES '.number_format(((int)$value)/100, 2))
@include('layouts.messages')

Your partnership at work

Earnings & payouts

Commissions from verified collections and confirmed onboarding. Balances update after reconciliation.

Partner home

Total earned: {{ $money($wallet?->earned_minor ?? 0) }} · Net adjustments: {{ $money($wallet?->adjustments_minor ?? 0) }}
Available is eligible unreserved earnings. Reserved awaits review or transfer. Held funds require reconciliation. Paid records completed external transfers.

@foreach(['available_minor'=>'Available to withdraw','reserved_minor'=>'Reserved for review','paid_minor'=>'Paid to you'] as $field=>$label)
{{ $label }}{{ $money($wallet?->$field ?? 0) }}
@endforeach
@if(($wallet?->debt_minor ?? 0) > 0 || ($wallet?->held_minor ?? 0) > 0)
Funds on hold: {{ $money($wallet?->held_minor ?? 0) }}. Outstanding adjustments: {{ $money($wallet?->debt_minor ?? 0) }}. Menulyn must reconcile adjustments before affected funds can be withdrawn.
@endif

Request a withdrawal

Withdraw your full available balance. Menulyn reviews each request and records the transfer reference after payment.

@if($destinationLabel)

Destination
{{ $destinationLabel }}

@else

Save your payout details to request a withdrawal.

@endif
@csrf

The destination above is saved with this request. Updating your details later will not change it.

Payout details

Use an account in the recipient’s name. Saving details does not verify account ownership.

@csrf

Withdrawal history

@forelse($withdrawals as $withdrawal)@empty@endforelse
ReferenceAmountDestinationStatus
{{ $withdrawal->reference }}
{{ $withdrawal->created_at }}
{{ $money($withdrawal->amount_minor) }}{{ $withdrawal->destination_label }}{{ ucfirst($withdrawal->status) }}@if($withdrawal->reason)
{{ $withdrawal->reason }}@endif
No withdrawals yet.
{{ $withdrawals->links('pagination::simple-default') }} @if($requests->count())

Recent requests

@endif

Commission activity

@forelse($entries as $entry)@empty@endforelse
DateActivityAmountDetails
{{ $entry->occurred_at }}{{ ucfirst(str_replace('_',' ',$entry->type)) }}{{ $money($entry->amount_minor) }}{{ $entry->reason }}
No commission activity yet. Trial approval alone does not earn a commission.
{{ $entries->links('pagination::simple-default') }}
@endsection