@section('page_name') Edit '{{ $customer->companyName }}' @stop @section('breadcrumbs') Customers {{ $customer->getCustomerName() }} Edit @stop @section('page_header') @stop @section('scripts') @stop @section('content') {{ Form::model($customer, array('route' => array('customers.update', $customer->id), 'method' => 'PUT', 'onsubmit' => 'return validateForm()')) }}
Created on {{ $customer->created_at }} by {{ $customer->getCreator->getFullname() }}
Credit rating  {{ Form::select('credit', CustomerCreditRating::lists('type', 'id')) }}
Visit fee  {{ Form::text('assignedVisitFee', null, array('class' => 'euro', 'style' => 'width: 100px;')) }}
Newsletter  {{ Form::select('newsletter', array(1 => 'Yes', 0 => 'No')) }}
Ad type  {{ Form::select('advertisingType', AdType::lists('type', 'id')) }}
Read-only  {{ Form::select('readonly', array(1 => 'Yes', 0 => 'No')) }}
{{ Form::button(' Save customer', array('class' => 'btn btn-green fr', 'type' => 'submit'))}}

Company information
Customer code {{ Form::text('customerCode') }}
Company name {{ Form::text('companyName') }}
Tax Id {{ Form::text('cifnif') }}
Address {{ Form::textarea('address') }}
City {{ Form::text('city') }}
Region {{ Form::text('region') }}
Postal code {{ Form::text('postalCode') }}
Country {{ Form::text('country') }}
Visual directions {{ Form::textarea('visualDirections') }}
Map location {{ Form::hidden('locationLat', null, array('id' => 'locationLat')) }} {{ Form::hidden('locationLng', null, array('id' => 'locationLng')) }}
hasCoordinates()) ? 'class="hidden"' : '' }}>

hasCoordinates()) ? 'class="hidden"' : '' }}>
Contact details
Contact title {{ Form::text('contactTitle') }}
Contact name {{ Form::text('contactName') }}
Phone {{ Form::text('phone') }}
mobile {{ Form::text('mobile') }}
Fax {{ Form::text('fax') }}
Email address {{ Form::text('email') }}
Website {{ Form::text('website') }}
Bank details
Account holder {{ Form::text('accountHolder') }}
Bank name {{ Form::text('bankName') }}
Swiftcode {{ Form::text('swiftCode') }}
IBAN {{ Form::text('iban') }}
SEPA Mandate ID {{ Form::text('sepa_mandateId') }}
SEPA Mandate Date {{ Form::text('sepa_mandateDate', null, array('class' => 'date basinput')) }}

Bank stuff: {{ $customer->bankId }} {{ $customer->branchId }} {{ $customer->dc }} {{ $customer->accountId }}
Bank stuff: {{ $customer->bankId }}{{ $customer->branchId }}{{ $customer->dc }}{{ $customer->accountId }}
{{ Form::close() }}
@stop