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

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

@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'); @endphp @if($showChargeMode) @endif @endforeach
Type Minimum ({{ $baseCurrencyCode }}) Percentage Maximum ({{ $baseCurrencyCode }})Charge behaviour
{{ $label }}
%
@endforeach
@endsection