@extends('central.super.layout') @section('title', __('super.gateway_settings.title')) @section('content') {{-- Gateway tabs --}}
@foreach($gateways as $key => $gw) @endforeach
{{-- Gateway panels --}} @foreach($gateways as $key => $gw)
@csrf @method('PUT')
{{-- Gateway header card --}}

{{ $gw['definition']['label'] }}

{{ $gw['definition']['description'] }}

@if($key !== 'offline') {{-- Mode toggle --}}

{{ __('super.gateway_settings.environment') }}

{{-- Currency configuration --}}

{{ __('central.CurrencyConfiguration') }}

{{ __('central.SupportedCurrenciesHint') }}

{{ __('central.DefaultCurrencyHint') }}

@if(! empty($gw['currency_presets']))
{{ __('central.CurrencyDefaults') }}: {{ implode(', ', array_slice($gw['currency_presets']['supported_currencies'], 0, 8)) }}{{ count($gw['currency_presets']['supported_currencies']) > 8 ? '...' : '' }}
@endif
{{-- API credentials --}}

{{ __('super.gateway_settings.api_credentials') }}

@foreach($gw['definition']['fields'] as $fieldKey => $field)
@if($field['secret']) @endif
@if($field['secret'] && !empty($gw['credentials'][$fieldKey]))

{{ __('super.gateway_settings.keep_current') }}

@endif
@endforeach
@else {{-- Offline gateway: no API credentials needed --}}

{{ __('central.HowItWorks') }}

{!! __('central.OfflineStep1') !!}
{!! __('central.OfflineStep2') !!}
{!! __('central.OfflineStep3') !!}
{{ __('central.OfflineStep4') }}

{!! __('central.ConfigureBankDetailsNotice', ['url' => route('super.settings.general') . '#bank-details']) !!}

@endif
{{-- Sidebar --}}
@endforeach @push('scripts') @endpush @endsection