@extends('layouts.app') @section('title', 'Billing & Payouts') @section('content')

Billing & Payouts

Track your earnings and payouts

Total Sales

R {{ number_format($stats['total_sales'], 2) }}

Commission Paid

R {{ number_format($stats['total_commission'], 2) }}

Net Earnings

R {{ number_format($stats['net_earnings'], 2) }}

Pending Payout

R {{ number_format($stats['pending_payout'], 2) }}

Recent Transactions

@if($transactions->count() > 0)
@foreach($transactions as $transaction) @endforeach
Date Type Amount Commission Net Status
{{ $transaction->created_at->format('d M Y') }} {{ $transaction->type }} R {{ number_format($transaction->amount, 2) }} -R {{ number_format($transaction->commission_amount, 2) }} R {{ number_format($transaction->net_amount, 2) }} @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'processed' => 'bg-blue-100 text-blue-800', 'paid' => 'bg-green-100 text-green-800', ]; @endphp {{ ucfirst($transaction->status) }}
{{ $transactions->links() }}
@else

No transactions yet

@endif

Commission Info

Commission Rate {{ $supplier->commission_rate }}%
Registration Fee {{ $supplier->registration_fee_paid ? 'Paid' : 'Pending' }}

Commission is automatically deducted from each sale. Payouts are processed weekly.

Recent Payouts

@if($payouts->count() > 0)
@foreach($payouts as $payout)

{{ $payout->payout_number }}

{{ $payout->created_at->format('d M Y') }}

R {{ number_format($payout->net_amount, 2) }}

{{ ucfirst($payout->status) }}
@endforeach
@else

No payouts yet

@endif
@endsection