@extends('public.header') @section('content') @include('payments.payment_css')

 

 

 

{!! Former::vertical_open() ->autocomplete('on') ->addClass('payment-form') ->id('payment-form') ->rules(array( 'name' => 'required', 'email' => 'required|email', 'first_name' => 'required', 'last_name' => 'required', 'vat_number' => 'required', 'address1' => 'required', 'city' => 'required', 'state' => $account->requiresAddressState() ? 'required' : '', 'postal_code' => 'required', 'country_id' => 'required', )) !!} @if ($client) {{ Former::populate($client) }} {{ Former::populateField('first_name', $contact->first_name) }} {{ Former::populateField('last_name', $contact->last_name) }} {{ Former::populateField('email', $contact->email) }} @if (!$client->country_id && $client->account->country_id) {{ Former::populateField('country_id', $client->account->country_id) }} @endif @endif

{{ trans('texts.client_information') }}


@if ($client->name)
{!! Former::text('name') ->placeholder(trans('texts.name')) ->label('') !!}
@else
{!! Former::text('first_name') ->placeholder(trans('texts.first_name')) ->label('') !!}
{!! Former::text('last_name') ->placeholder(trans('texts.last_name')) ->label('') !!}
@endif
{!! Former::text('email') ->placeholder(trans('texts.email')) ->label('') !!}
@if ($account->vat_number || $account->isNinjaAccount())
{!! Former::text('vat_number') ->placeholder(trans('texts.vat_number')) ->label('') !!}
@endif

{{ trans('texts.billing_address') }}


{!! Former::text('address1') ->autocomplete('address-line1') ->placeholder(trans('texts.address1')) ->label('') !!}
{!! Former::text('address2') ->autocomplete('address-line2') ->placeholder(trans('texts.address2')) ->label('') !!}
{!! Former::text('city') ->autocomplete('address-level2') ->placeholder(trans('texts.city')) ->label('') !!}
{!! Former::text('state') ->autocomplete('address-level1') ->placeholder(trans('texts.state')) ->label('') !!}
{!! Former::text('postal_code') ->autocomplete('postal-code') ->placeholder(trans('texts.postal_code')) ->label('') !!}
{!! Former::select('country_id') ->placeholder(trans('texts.country_id')) ->fromQuery($countries, 'name', 'id') ->addGroupClass('country-select') ->label('') !!}

 

{!! Button::normal(strtoupper(trans('texts.cancel') ))->asLinkTo($account->enable_client_portal_dashboard ? '/client/dashboard' : '/client/payment_methods')->large() !!}   {!! Button::success(strtoupper(trans('texts.save') ))->submit()->large() !!}
{!! Former::close() !!}
@stop