@extends('parts.container') @section('styles') @endsection @section('content')
Charge Settings

Minimums are in base currency ({{ $baseCurrencyCode }}).

Cost is what the provider charges us per transaction, either a fixed amount or a percentage of the amount. It is not charged to users; it is used to report net revenue. Leave it blank for no cost.

@if(session('success')) @endif
@csrf
@foreach ($definitions as $groupKey => $group) @php $showChargeMode = $groupKey === 'top_ups'; @endphp
{{ $group['label'] }}
@if($showChargeMode) @endif @foreach ($group['items'] as $code => $label) @php $current = $settings->get($code); $minValue = old("settings.$code.min_amount", $current?->min_amount ?? 0); $percentValue = old("settings.$code.percentage", $current?->percentage ?? 0); $maxValue = old("settings.$code.max_amount", $current?->max_amount); $modeValue = old("settings.$code.charge_mode", $current?->charge_mode ?? 'add'); $costType = old("settings.$code.cost_type", $current?->cost_type ?? 'fixed'); $costValue = old("settings.$code.cost_value", $costType === 'percentage' ? $current?->cost_percentage : $current?->cost_fixed); @endphp @if($showChargeMode) @endif @endforeach
Type Minimum ({{ $baseCurrencyCode }}) Percentage Maximum ({{ $baseCurrencyCode }}) Cost type CostCharge behaviour
{{ $label }}
%
{{ $costType === 'percentage' ? '%' : $baseCurrencyCode }}
@if($showChargeMode)

Add to top-up amount: the payer is charged the top-up plus the fee, and the wallet receives the full top-up. Deduct from wallet: the payer is charged the top-up only, and the fee is taken from the wallet afterwards.

@endif
@endforeach
@endsection @section('scripts') @endsection