@php
$key = 0;
@endphp
@foreach(@$gateway_activations as $gateway)
@if($gateway->method->method == 'Wallet' || $gateway->method->method == 'Cash On Delivery')
@php
$key = 0;
@endphp
@continue
@endif
@if($gateway->method->method == 'PayPal' && @$gateway->status == 1)
@include('paymentgateway::components.paypal_config')
@elseif($gateway->method->method == 'Stripe' && @$gateway->status == 1)
@include('paymentgateway::components.stripe_config')
@elseif($gateway->method->method == 'PayStack' && @$gateway->status == 1)
@include('paymentgateway::components.paystack_config')
@elseif($gateway->method->method == 'RazorPay' && @$gateway->status == 1)
@include('paymentgateway::components.razorpay_config')
@elseif($gateway->method->method == 'PayTM' && @$gateway->status == 1)
@include('paymentgateway::components.paytm_config')
@elseif($gateway->method->method == 'Instamojo' && @$gateway->status == 1)
@include('paymentgateway::components.instamojo_config')
@elseif($gateway->method->method == 'Midtrans' && @$gateway->status == 1)
@include('paymentgateway::components.midtrans_configuration')
@elseif($gateway->method->method == 'PayUMoney' && @$gateway->status == 1)
@include('paymentgateway::components.payumoney_configuration')
@elseif($gateway->method->method == 'JazzCash' && @$gateway->status == 1)
@include('paymentgateway::components.jazzcash_configuration')
@elseif($gateway->method->method == 'Google Pay' && @$gateway->status == 1)
@include('paymentgateway::components.google_pay_configuration')
@elseif($gateway->method->method == 'FlutterWave' && @$gateway->status == 1)
@include('paymentgateway::components.flutter_wave_payment_configuration')
@elseif($gateway->method->method == 'Bank Payment' && @$gateway->status == 1)
@include('paymentgateway::components.bank_config')
@elseif(isModuleActive('Bkash') && $gateway->method->method == 'Bkash' && @$gateway->status == 1)
@include('bkash::bkash_config')
@elseif(isModuleActive('SslCommerz') && $gateway->method->method == 'SslCommerz' && @$gateway->status == 1)
@include('sslcommerz::config')
@elseif(isModuleActive('MercadoPago') && $gateway->method->method == 'Mercado Pago' && @$gateway->status == 1)
@include('mercadopago::config')
@endif
@php
$key ++;
@endphp
@endforeach