@foreach(config('constant.PAYMENT_GATEWAY_SETTING') as $key => $value)
{!! html()->modelForm($payment_setting_data,'POST',route('paymentSettingsUpdate'))->attribute('data-toggle', 'validator')->open() !!} {!! html()->hidden('id', null)->class('form-control') !!} {!! html()->hidden('type', $key)->class('form-control') !!}
{!! html()->label(__('message.title').' *')->for('title')->class('form-control-label') !!} {!! html()->text('title',old('title'))->placeholder(__('message.title'))->class('form-control')->required() !!}
@if( $key != 'cash' )
{{ html()->radio('is_test', isset($payment_setting_data) ? $payment_setting_data->is_test == '1' : old('is_test') || true, '1')->class('custom-control-input')->id('is_test_test_' . $key) }} {{ html()->label(__('message.test'))->class('custom-control-label')->for('is_test_test_' . $key) }}
{{ html()->radio('is_test', isset($payment_setting_data) ? $payment_setting_data->is_test == '0' : old('is_test'), '0')->class('custom-control-input')->id('is_test_live_' . $key) }} {{ html()->label(__('message.live'))->class('custom-control-label')->for('is_test_live_' . $key) }}
@endif
@if( $key != 'cash' )
{{ __('message.test') }}

@if( is_array($value) ) @foreach( $value as $val)
{!! html()->label(__('message.' . $val))->for('test_value[' . $val . ']')->class('form-control-label') !!} {!! html()->text('test_value[' . $val . ']')->placeholder(__('message.' . $val))->class('form-control') !!}
@endforeach @endif
{{ __('message.live') }}

@if( is_array($value) ) @foreach( $value as $val)
{!! html()->label(__('message.' . $val))->for('live_value[' . $val . ']')->class('form-control-label') !!} {!! html()->text('live_value[' . $val . ']')->placeholder(__('message.' . $val))->class('form-control') !!}
@endforeach @endif
@endif @if( $key != 'cash' )
{!! html()->label(__('message.status') . ' *')->for('status')->class('form-control-label')!!} {!! html()->select('status', ['1' => __('message.active'), '0' => __('message.inactive')], old('status'))->class('form-control select2js')->required() !!}
{!! html()->label(__('message.image'))->for('image')->class('form-control-label') !!}
{!! html()->file('gateway_image')->class('custom-file-input')->accept('image/*') !!} {!! html()->label(__('message.choose_file', ['file' => __('message.image')]))->class('custom-file-label') !!}
@if( isset($payment_setting_data) && getMediaFileExit($payment_setting_data, 'gateway_image')) @else
gateway-image
@endif
@endif
{!! html()->submit(__('message.save'))->class('btn btn-md btn-primary float-md-right') !!} {!! html()->form()->close() !!}
@endforeach