@extends('layouts.admin.app') @section('title',translate('messages.Payment Method')) @section('content')
@php $currency= \App\Models\BusinessSetting::where('key','currency')->first()?->value?? 'USD'; $checkCurrency = \App\CentralLogics\Helpers::checkCurrency($currency); $currency_symbol =\App\CentralLogics\Helpers::currency_symbol(); @endphp @if($published_status == 1)

{{ translate('Your_current_payment_settings_are_disabled,_because_you_have_enabled_payment_gateway_addon,_To_visit_your_currently_active_payment_gateway_settings_please_follow_the_link.') }}

{{translate('Settings')}}
@endif @if($checkCurrency !== true )

{{ translate($checkCurrency).' '. translate('Does_not_support_your_current') }} {{ $currency }}({{$currency_symbol }}) {{ translate('Currency,_thus_users_cannot_view_digital_payment_options_in_their_websites_and_apps.') }}

@elseif ($data_values->where('is_active',1 )->count() == 0)

{{ translate('Currently,_there_is_no_digital_payment_method_is_set_up_that_supports_') }} {{ $currency }}({{$currency_symbol }}),{{ translate('_thus_users_cannot_view_digital_payment_options_in_their_websites_and_apps_._You_must_activate_at_least_one_digital_payment_method_that_supports_') }} {{ $currency }}({{$currency_symbol }}) {{ translate('_otherwise,_all_users_will_be_unable_to_pay_via_digital_payments.') }}

@endif @php($is_published = $published_status == 1 ? 'inactive' : '')
@foreach($data_values->sortByDesc('is_active') as $payment_key => $payment)
@csrf
{{str_replace('_',' ',$payment->key_name)}}
@php($additional_data = $payment['additional_data'] != null ? json_decode($payment['additional_data']) : [])
public
@php($mode=$data_values->where('key_name',$payment->key_name)->first()->live_values['mode'])
@php($skip=['gateway','mode','status']) @foreach($data_values->where('key_name',$payment->key_name)->first()->live_values as $key=>$value) @if(!in_array($key,$skip)) @php($inputType = in_array($key, ['api_secret', 'secret_key', 'store_password', 'password', 'webhook_secret']) ? 'password' : 'text')
@endif @endforeach @if($payment['key_name'] == 'razor_pay') @if(!isset($data_values->where('key_name', 'razor_pay')->first()->live_values['webhook_secret']))
@endif
@endif @if($payment['key_name'] == 'paystack')
@endif @php($supportedCountry = $payment->live_values) @if ( $payment['key_name'] == 'mercadopago') @php($supportedCountry = isset($supportedCountry['supported_country']) ? $supportedCountry['supported_country'] : ['argentina'])
@endif
@endforeach
@endsection @push('script_2') @endpush