@extends('admin.layouts.app') @section('title', 'Merchant settlements — ExtraCash Admin') @section('page-title', 'Merchant settlements') @section('breadcrumb', 'Grouped totals for merchant payments (gross, fees, net)') @section('content')
Gross
ZMW {{ number_format($totals['gross'] ?? 0, 2) }}
{{ number_format($totals['count'] ?? 0) }} order(s)
Fees
ZMW {{ number_format($totals['fee'] ?? 0, 2) }}
Net to merchants
ZMW {{ number_format($totals['net'] ?? 0, 2) }}
Net = gross − fees
| Merchant | Orders | Gross | Fees | Net |
|---|---|---|---|---|
|
{{ $m?->name ?? '—' }} Code: {{ $m?->code ?? '—' }} · ID: {{ $r->merchant_id }} |
{{ number_format($r->orders_count ?? 0) }} | ZMW {{ number_format($r->gross_total ?? 0, 2) }} | ZMW {{ number_format($r->fee_total ?? 0, 2) }} | ZMW {{ number_format($r->net_total ?? 0, 2) }} |
| No merchant totals found | ||||