@extends('layout.app') @section('title', __('stripe_payment_gateway_configure')) @section('content')

{{ __('Payment Gateways') }}

@foreach ($paymentGateways as $paymentGateway) @php $shopConfig = $shopWisePaymentGateway->firstWhere('name', $paymentGateway->name); $configs = $shopConfig ? json_decode($shopConfig->config, true) : []; $decodedPaymentGatewayConfig = json_decode($paymentGateway->config, true) ?? []; $mode = $shopConfig->mode ?? ''; $title = $shopConfig->title ?? ''; $logo = $shopConfig->logo ?? ''; $is_active = $shopConfig->is_active ?? ''; @endphp

{{ strtoupper($paymentGateway->name) }}

{{ $is_active ? 'On' : 'Off' }}
@csrf
@php $shopConfig = $shopWisePaymentGateway->firstWhere('name', $paymentGateway->name); $configs = $shopConfig ? json_decode($shopConfig->config, true) : []; @endphp @foreach ($decodedPaymentGatewayConfig as $key => $defaultValue) @php $label = ucwords(str_replace('_', ' ', $key)); $inputValue = isset($configs[$key]) ? $configs[$key] : ''; @endphp
@endforeach
@endforeach
@endsection @push('scripts') @endpush