51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<script>
|
|
$(function () {
|
|
|
|
$('.payment_gateway_options').hide();
|
|
$('#gateway_{{ $default_payment_gateway_id }}').show();
|
|
|
|
$('input[type=radio][name=payment_gateway]').on('change', function (e) {
|
|
$('.payment_gateway_options').hide();
|
|
$('#gateway_' + $(this).val()).fadeIn();
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
{!! Form::model($account, array('url' => route('postEditAccountPayment'), 'class' => 'ajax ')) !!}
|
|
<div class="form-group">
|
|
{!! Form::label('payment_gateway_id', trans("ManageAccount.default_payment_gateway"), array('class'=>'control-label
|
|
')) !!}<br/>
|
|
|
|
@foreach ($payment_gateways as $id => $payment_gateway)
|
|
{!! Form::radio('payment_gateway', $payment_gateway['id'], $payment_gateway['default'],
|
|
array('id'=>'payment_gateway_' . $payment_gateway['id'])) !!}
|
|
{!! Form::label($payment_gateway['provider_name'],$payment_gateway['provider_name'] , array('class'=>'control-label
|
|
gateway_selector')) !!}<br/>
|
|
@endforeach
|
|
|
|
|
|
</div>
|
|
|
|
@foreach ($payment_gateways as $id => $payment_gateway)
|
|
|
|
@if(View::exists($payment_gateway['admin_blade_template']))
|
|
@include($payment_gateway['admin_blade_template'])
|
|
@endif
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="panel-footer">
|
|
{!! Form::submit(trans("ManageAccount.save_payment_details_submit"), ['class' => 'btn btn-success
|
|
pull-right']) !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{!! Form::close() !!} |