@extends('admin.master') @section('title', __('Payments settings')) @section('additional_head_tags') @if(config('app.html_editor') == 'summernote') @else @endif @endsection @section('content')
@if($errors->any()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif @if(session('settings_message'))
{{ session('settings_message') }}
@endif
@foreach(config('payment_gateways', []) as $gateway_name => $gateway_config)

{{ $gateway_config['name'] }}{{ __($gateway_config['name']) }}
gateways->$gateway_name->enabled ?? null) ? 'checked' : '' }} @endif >

@foreach(collect($gateway_config['fields'])->except(['enabled'])->all() as $field_name => $field_config) @if($field_config['type'] == 'hidden') @else
@if($field_config['type'] == 'string') gateways->$gateway_name->$field_name ?? null) }}"> @elseif($field_config['type'] == 'html_editor') @elseif($field_config['type'] == 'dropdown') @endif
@endif @endforeach
@endforeach
(1) : {{ __('Allow receiving payments in defferent currencies than the main currency.') }}
@foreach(config('exchangers', []) as $name => $config)
exchangers->$name->api_key ?? null) }}">
@endforeach
(3) {{ __('Allow users to make purchases without being logged in.') }}
{{ __('Allow buyers to enter some instructions about their purchase (customization, ...etc.).') }}
(4) {{ __('Allow users to pay what they want for products with an optional minimum amount.') }}
{{ __("This can be used for payment services that don't support webhook or IPN") }}
(5) : {{ __('Change the currency to this currency when a user proceed to the checkout, regardless his selected currrency.') }}
@endsection