@props([ 'id', 'title' => 'Add funds', 'description' => '', 'topupAction', 'minTopup' => 5, 'suggestedAmount' => 10, 'ladillWalletBalance' => 0, 'serviceBalance' => null, 'serviceBalanceLabel' => 'Wallet balance', 'pricePerAction' => null, 'actionNoun' => 'action', 'openOnLoad' => false, 'returnUrl' => null, ]) @php // Single-wallet (siloing step 2): there is one Ladill wallet, so "pay from // wallet into service credits" is a meaningless round-trip — top up the one // wallet directly (Paystack). Transfer option removed. $canPayFromWallet = false; // Balance shown in the explainer — prefer the service balance, fall back to // the central wallet figure. $shownBalance = $serviceBalance !== null ? (float) $serviceBalance : (float) $ladillWalletBalance; @endphp
{{-- Header with step indicator --}}

How billing works

{{ $description }}

{{-- STEP 1 — billing explainer --}}

Ladill is pay-as-you-go. One wallet funds every Ladill app, and you're only charged when you perform an action.

@if($pricePerAction !== null)
Each {{ $actionNoun }} costs GHS {{ number_format((float) $pricePerAction, 2) }}
@endif
{{ $serviceBalanceLabel }} GHS {{ number_format($shownBalance, 2) }}

Top up any amount — unused funds stay in your wallet for next time. You can withdraw them whenever you like.

{{-- STEP 2 — amount + payment --}}
@csrf @if($returnUrl) @endif

Minimum GHS {{ number_format($minTopup, 2) }}

Pay securely with Paystack.

@include('partials.paystack-sheet')