@foreach(config('constant.PAYMENT_GATEWAY_SETTING') as $key => $value)
{{ Form::model($payment_setting_data, [ 'method' => 'POST', 'route' => ['paymentSettingsUpdate'], 'enctype'=>'multipart/form-data', 'data-toggle' => 'validator' ]) }} {{ Form::hidden('id', null, [ 'class' => 'form-control'] ) }} {{ Form::hidden('type', $key , [ 'class' => 'form-control' ]) }}
{{ Form::label('title',__('message.title').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('title',old('title'),[ 'placeholder' => __('message.title'), 'class' => 'form-control', 'required' ]) }}
@if( $key != 'cash' )
{{ Form::radio('is_test', '1' , old('is_test') || true, ['class' => 'custom-control-input', 'id' => 'is_test_test_'.$key ]) }} {{ Form::label('is_test_test_'.$key, __('message.test'), ['class' => 'custom-control-label' ]) }}
{{ Form::radio('is_test', '0' , old('is_test'), ['class' => 'custom-control-input', 'id' => 'is_test_live_'.$key ]) }} {{ Form::label('is_test_live_'.$key, __('message.live'), ['class' => 'custom-control-label' ]) }}
@endif
@if( $key != 'cash' )
{{ __('message.test') }}

@if( is_array($value) ) @foreach( $value as $val)
{{ Form::label('test_value['.$val.']',__('message.'.$val),['class'=>'form-control-label'] ) }} {{ Form::text('test_value['.$val.']',null,[ 'placeholder' => __('message.'.$val), 'class' => 'form-control' ]) }}
@endforeach @endif
{{ __('message.live') }}

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