@extends('admin.layouts.app') @section('title', 'Fees & revenue — ExtraCash Admin') @section('page-title', 'Fees & revenue') @section('breadcrumb', 'Rollup: merchant fees, marketplace admin fees, cashback totals') @section('content')
Export CSV

{{ $range['from']->format('M d, Y') }} → {{ $range['to']->format('M d, Y') }}

Bill / Partner merchant payments

Derived from `orders` (gross, fee, net).

Gross
ZMW {{ number_format($totals['merchant_gross'] ?? 0, 2) }}
Fees
ZMW {{ number_format($totals['merchant_fee'] ?? 0, 2) }}
Net to merchants
ZMW {{ number_format($totals['merchant_net'] ?? 0, 2) }}

Marketplace

Completed sales only (split: 1% admin fee, 2% cashback, 97% seller net).

Gross
ZMW {{ number_format($totals['marketplace_gross'] ?? 0, 2) }}
Admin fee (revenue)
ZMW {{ number_format($totals['marketplace_admin_fee'] ?? 0, 2) }}
Cashback (granted)
ZMW {{ number_format($totals['marketplace_cashback'] ?? 0, 2) }}
Net to sellers
ZMW {{ number_format($totals['marketplace_seller_net'] ?? 0, 2) }}

Cashback ledger total

Sum of `cashback_transactions.amount` within range (may include sources beyond marketplace).

ZMW {{ number_format($totals['cashback_ledger_total'] ?? 0, 2) }}

@endsection