@extends('header') @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_PAYMENTS]) @include('money_script') {!! Former::open()->addClass('warn-on-exit') !!} {!! Former::populateField('token_billing_type_id', $account->token_billing_type_id) !!} {!! Former::populateField('auto_bill_on_due_date', $account->auto_bill_on_due_date) !!} {!! Former::populateField('gateway_fee_location', $account->gateway_fee_location) !!}

{!! trans('texts.payment_settings') !!}

{!! Former::select('token_billing_type_id') ->options($tokenBillingOptions) ->help(trans('texts.token_billing_help')) !!} {!! Former::inline_radios('auto_bill_on_due_date') ->label(trans('texts.auto_bill')) ->radios([ trans('texts.on_send_date') => ['value'=>0, 'name'=>'auto_bill_on_due_date'], trans('texts.on_due_date') => ['value'=>1, 'name'=>'auto_bill_on_due_date'], ])->help(trans('texts.auto_bill_ach_date_help')) !!}
{!! Former::checkbox('gateway_fee_location') ->onchange('onGatewayFeeChange()') ->help('gateway_fees_help') ->label('gateway_fees') ->text('enable') ->value(FEE_LOCATION_ITEM) !!} {{-- Former::select('gateway_fee_location') ->addOption(trans('texts.disabled'), '') ->addOption(trans('texts.location_first_surcharge') . ($account->custom_invoice_label1 ? ' | ' . $account->custom_invoice_label1 : ''), FEE_LOCATION_CHARGE1) ->addOption(trans('texts.location_second_surcharge') . ($account->custom_invoice_label2 ? ' | ' . $account->custom_invoice_label2 : '' ), FEE_LOCATION_CHARGE2) ->addOption(trans('texts.location_line_item'), FEE_LOCATION_ITEM) ->onchange('onGatewayFeeChange()') ->help('gateway_fees_help') ->label('gateway_fees') --}}
{!! Former::actions( Button::success(trans('texts.save'))->withAttributes(['id' => 'formSave'])->submit()->appendIcon(Icon::create('floppy-disk')) ) !!}
{!! Former::close() !!} @if ($showAdd) {!! Button::primary(trans('texts.add_gateway')) ->asLinkTo(URL::to('/gateways/create')) ->withAttributes(['class' => 'pull-right']) ->appendIcon(Icon::create('plus-sign')) !!} @endif @include('partials.bulk_form', ['entityType' => ENTITY_ACCOUNT_GATEWAY]) {!! Datatable::table() ->addColumn( trans('texts.gateway'), trans('texts.limits'), trans('texts.fees'), trans('texts.action')) ->setUrl(url('api/gateways/')) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('bFilter', false) ->setOptions('bAutoWidth', false) ->setOptions('aoColumns', [[ "sWidth"=> "20%" ], ["sWidth"=> "20%"], ["sWidth"=> "30%"], ["sWidth"=> "20%"]]) ->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[1, 2, 3]]]) ->render('datatable') !!} {!! Former::open( 'settings/payment_gateway_limits') !!} {!! Former::close() !!} @stop