{!! Former::open($url)->method($method)->rules(array( 'first_name' => 'required', 'last_name' => 'required', 'email' => 'required', 'description' => 'required', 'company_name' => 'required', 'tos_agree' => 'required', ))->addClass('warn-on-exit') !!} {!! Former::populateField('company_name', $account->getDisplayName()) !!} {!! Former::populateField('first_name', $user->first_name) !!} {!! Former::populateField('last_name', $user->last_name) !!} {!! Former::populateField('email', $user->email) !!} {!! Former::populateField('show_address', 1) !!} {!! Former::populateField('update_address', 1) !!} {!! Former::populateField('token_billing_type_id', $account->token_billing_type_id) !!}

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

{!! Former::text('first_name') !!} {!! Former::text('last_name') !!} {!! Former::text('email') !!} {!! Former::text('company_name')->help('wepay_company_name_help')->maxlength(255) !!} {!! Former::text('description')->help('wepay_description_help') !!} {!! Former::select('token_billing_type_id') ->options($tokenBillingOptions) ->help(trans('texts.token_billing_help')) !!} {!! Former::checkbox('show_address') ->label(trans('texts.billing_address')) ->text(trans('texts.show_address_help')) ->addGroupClass('gateway-option') !!} {!! Former::checkbox('update_address') ->label(' ') ->text(trans('texts.update_address_help')) ->addGroupClass('gateway-option') !!} {!! Former::checkboxes('creditCardTypes[]') ->label('Accepted Credit Cards') ->checkboxes($creditCardTypes) ->class('creditcard-types') ->addGroupClass('gateway-option') !!} {!! Former::checkbox('tos_agree')->label(' ')->text(trans('texts.wepay_tos_agree', ['link'=>''.trans('texts.wepay_tos_link_text').''] ))->value('true') !!}
{!! Button::primary(trans('texts.sign_up_with_wepay')) ->submit() ->large() !!} @if(isset($gateways))

{{ trans('texts.use_another_provider') }} @endif
{!! Former::close() !!}