Deploy Ladill Give / deploy (push) Successful in 32s
Update settlement logic and in-app copy to match the new Ladill Pay donations tier. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
1.5 KiB
PHP
28 lines
1.5 KiB
PHP
<x-user-layout>
|
|
<x-slot name="title">Payouts</x-slot>
|
|
@php $fmt = fn ($m) => 'GHS '.number_format($m / 100, 2); @endphp
|
|
<div class="space-y-6">
|
|
<div>
|
|
<h1 class="text-xl font-semibold text-slate-900">Payouts</h1>
|
|
<p class="mt-1 text-sm text-slate-500">Donations settle into your Ladill wallet (5% fee), then withdraw to bank or MoMo.</p>
|
|
</div>
|
|
<div class="grid gap-4 sm:grid-cols-2">
|
|
<div class="rounded-2xl border border-slate-200 bg-white p-5">
|
|
<p class="text-xs font-medium uppercase tracking-wide text-slate-400">Total received (net)</p>
|
|
<p class="mt-1.5 text-2xl font-semibold text-slate-900">{{ $fmt($revenueMinor) }}</p>
|
|
</div>
|
|
<div class="rounded-2xl border border-indigo-100 bg-indigo-50/60 p-5">
|
|
<p class="text-xs font-medium uppercase tracking-wide text-indigo-600">Available in wallet</p>
|
|
<p class="mt-1.5 text-2xl font-semibold text-slate-900">{{ $fmt($balanceMinor) }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="rounded-2xl border border-slate-200 bg-slate-50 px-6 py-4 text-sm text-slate-600">
|
|
Donations are collected through Ladill Pay and credited to your Ladill wallet. Withdraw to bank or MoMo from your account wallet — payout and withdrawal history is there.
|
|
</div>
|
|
<a href="{{ $accountWalletUrl }}" class="btn-primary">
|
|
Open wallet & withdraw
|
|
<span aria-hidden="true">→</span>
|
|
</a>
|
|
</div>
|
|
</x-user-layout>
|