@php use App\Enums\MethodType; @endphp @extends('backend.layouts.app') @section('title', __('Payment Gateways')) @section('content')
{{ __('Payment Operations') }}

{{ __('Payment Gateways') }}

{{ __('Configure deposit and withdrawal providers, credentials, supported currencies, and availability from one control surface.') }}

{{ __('Active') }} {{ $gatewayStats['active'] }}
{{ __('Withdraw') }} {{ $gatewayStats['withdraw'] }}
{{ __('Currencies') }} {{ $gatewayStats['currencies'] }}

{{ __('Gateway Directory') }}

{{ __('Review provider readiness before opening credential settings.') }}

{{ trans_choice(':count gateway|:count gateways', $paymentGateways->total(), ['count' => $paymentGateways->total()]) }}
@forelse($paymentGateways as $paymentGateway) @php $allCurrencies = $paymentGateway->currencies ?? []; $allCurrencies = array_values(array_unique(array_map('strtoupper', $allCurrencies))); $visibleCurrencies = array_slice($allCurrencies, 0, 4); $hiddenCurrencies = array_slice($allCurrencies, 4); @endphp
{{ $paymentGateway->name }} {{ Str::upper($paymentGateway->code) }}
{{ $paymentGateway->status ? __('Active') : __('Inactive') }}
{{ __('Withdraw') }} {{ $paymentGateway->withdraw_available ? __('Available') : __('Unavailable') }}
{{ __('Currencies') }} {{ count($allCurrencies) }}
{{ __('Supported Currencies') }}
@if(count($allCurrencies) === 0) {{ __('None') }} @else
@foreach($visibleCurrencies as $currency) {{ $currency }} @endforeach @if(count($hiddenCurrencies) > 0) @php($restLabel = implode(', ', $hiddenCurrencies)) +{{ count($hiddenCurrencies) }} @endif
@endif
@can('payment-gateway-configure') @endcan
@empty @endforelse
{{ $paymentGateways->withQueryString()->links() }}
@can('payment-gateway-configure') @include('backend.payment_gateway.partial._edit_payment_gateway_modal') @endcan @endsection @push('scripts') @can('payment-gateway-configure') @endcan @endpush