@extends('admin.layouts.app') @section('title', __('admin.gateways.title')) @section('content')

{{ __('admin.gateways.description') }}

@php $modules = [ ['name' => 'banktransfer', 'label' => 'Bank Transfer', 'icon' => 'fas fa-university', 'desc' => __('admin.gateways.desc_banktransfer')], ['name' => 'paypal', 'label' => 'PayPal', 'icon' => 'fab fa-paypal', 'desc' => __('admin.gateways.desc_paypal')], ['name' => 'stripe', 'label' => 'Stripe', 'icon' => 'fab fa-stripe-s', 'desc' => __('admin.gateways.desc_stripe')], ['name' => 'razorpay', 'label' => 'Razorpay', 'icon' => 'fas fa-rupee-sign', 'desc' => __('admin.gateways.desc_razorpay')], ['name' => 'mollie', 'label' => 'Mollie', 'icon' => 'fas fa-euro-sign', 'desc' => __('admin.gateways.desc_mollie')], ['name' => 'authorize', 'label' => 'Authorize.net', 'icon' => 'fas fa-credit-card', 'desc' => __('admin.gateways.desc_authorize')], ]; @endphp
@foreach($modules as $gw) @php $settings = \App\Models\GatewaySettings::where('gateway', $gw['name'])->pluck('value', 'setting')->toArray() ?? []; $isActive = !empty($settings['active']) && $settings['active'] === '1'; @endphp
{{ $gw['label'] }} {{ $isActive ? __('common.status.active') : __('common.status.inactive') }}

{{ $gw['desc'] }}

@csrf
@if($gw['name'] === 'banktransfer')
@elseif($gw['name'] === 'paypal')
@elseif($gw['name'] === 'stripe')
@elseif($gw['name'] === 'authorize')
@else
@endif
@endforeach
@endsection