@extends('layouts._front.dashboard') @section('content') {!! Form::open(array('url' => '/dashboard/customer/edit-profile', 'method' => 'post', 'class' => '','id'=>'profile_edit_form','files' => true)) !!}
{!! Form::button(' Save Profile',array('class'=>'uk-button uk-form-help-inline text-uppercase uk-text-bold uk-button-primary ','type'=>'submit','name'=>'submit'))!!}
@if (Session::has('success'))
{!!Session::get('success')!!}
@endif @if (Session::has('braintree-error'))
{!!Session::get('braintree-error')!!}
@endif

Profile

{!! Form::label('firstname', '* First Name',array('class'=>'lbl' )); !!} {!! Form::text('firstname',$client->fldClientFirstname,array('id'=>'firstname','class'=>'text')) !!} @if($errors->updateProfile->first('firstname'))
{!!$errors->updateProfile->first('firstname')!!}
@endif
{!! Form::label('lastname', '* Last Name',array('class'=>'lbl' )); !!} {!! Form::text('lastname',$client->fldClientLastname,array('id'=>'lastname','class'=>'text')) !!} @if($errors->updateProfile->first('lastname'))
{!!$errors->updateProfile->first('lastname')!!}
@endif
{!! Form::label('phone', '* Phone Number',array('class'=>'lbl' )); !!} {!! Form::text('phone', $client->fldClientContact, array('id'=>'phone','required','class'=>'text phone_us')) !!} {{-- Form::text('phone',$client->fldClientContact,array('id'=>'phone','class'=>'text','pattern'=>'\d{3}[\-]\d{3}[\-]\d{4}')) --}} @if($errors->updateProfile->first('phone'))
{!!$errors->updateProfile->first('phone')!!}
@endif
{!! Form::label('email', '* Email Address',array('class'=>'lbl' )); !!} {!! Form::email('email',$client->fldClientEmail,array('id'=>'email','class'=>'text')) !!} @if($errors->updateProfile->first('email'))
{!!$errors->updateProfile->first('email')!!}
@endif

Address Information

{!! Form::label('address', ' * Street',array('class'=>'lbl' )); !!} {!! Form::text('address',$client->fldClientAddress,array('id'=>'address','class'=>'text')) !!} @if($errors->updateProfile->first('address'))
{!!$errors->updateProfile->first('address')!!}
@endif
{!! Form::label('city', '* City',array('class'=>'lbl' )); !!} {!! Form::text('city',$client->fldClientCity,array('id'=>'city','class'=>'text')) !!} @if($errors->updateProfile->first('city'))
{!!$errors->updateProfile->first('city')!!}
@endif
{!! Form::label('state', '* State',array('class'=>'lbl' )); !!} {!! Form::select('state',array('' => 'Select one')+App\Models\State::displayState(),isset($client->fldClientState) ? $client->fldClientState : "",array('id'=>'state','data-placeholder'=>'Select State', 'class'=>'required')) !!} @if($errors->updateProfile->first('state'))
{!!$errors->updateProfile->first('state')!!}
@endif
{!! Form::label('zip', '* ZIP',array('class'=>'lbl' )); !!} {!! Form::text('zip',$client->fldClientZip,array('id'=>'zip','class'=>'text')) !!} @if($errors->updateProfile->first('zip'))
{!!$errors->updateProfile->first('zip')!!}
@endif
{!! Form::label('career', 'Career',array('class'=>'lbl' )); !!} {!! Form::text('career',$client->fldClientCareer,array('id'=>'career','class'=>'text')) !!}
{!! Form::label('authorization', 'Authorization',array('class'=>'lbl' )); !!} {!! Form::text('authorization',$client->fldClientAuthorization,array('id'=>'authorization','class'=>'text')) !!}

Profile Image

@if($client->fldClientImage != "") {!! Html::image(CUSTOMER_IMAGE_PATH.$client->fldClientID.'/'.MEDIUM_IMAGE.$client->fldClientImage,'',array('style'=>'width: 200px; height: 140px;')) !!} @endif
Select image Change

Formats: png, gif, jpg • Max Size: 2MB • Min Dimension: {{ PROFILE_IMAGE_WIDTH }}px x {{ PROFILE_IMAGE_HEIGHT }}px @if($errors->updateProfile->first('image') && $errors->updateProfile->first('image')!="validation.img_min_size")
{!!$errors->updateProfile->first('image')!!}
@endif

Profile Settings

fldClientMobileAlerts }}>
{!! Form::label('birthday', 'Birthday',array('class'=>'lbl table-text light' )); !!}
{!! Form::label('birth_mm', 'Month',array('class'=>'lbl small light' )); !!} {!! Form::selectMonth('birth_month', $birthDate[0], ['class' => 'field']) !!}
{!! Form::label('birth_dd', 'Day',array('class'=>'lbl small light' )); !!}
{!! Form::label('birth_yy', 'Year',array('class'=>'lbl small light' )); !!}
{!! Form::label('username', 'Username',array('class'=>'lbl table-text light' )); !!} {!! Form::text('username',$client->fldClientEmail,array('id'=>'username','class'=>'text')) !!} @if($errors->updateProfile->first('username'))
{!!$errors->updateProfile->first('username')!!}
@endif
{!! Form::label('password', 'Password',array('class'=>'lbl table-text light' )); !!} {!! Form::password('password',array('id'=>'password','class'=>'text')) !!}
at least 8 char an uppercase a number special char
@if($errors->updateProfile->first('password'))
{!!$errors->updateProfile->first('password')!!}
@endif

Banking Information @if($client->fldClientBraintreeMerchantID != "") ({{ $client->fldClientBraintreeMerchantID }}) @endif

{!! Form::label('bank_name', 'Bank Name',array('class'=>'lbl' )); !!} {!! Form::text('bank_name',$client->fldClientBankName,array('id'=>'bank_name','class'=>'text')) !!}
{!! Form::label('account_no', 'Account Number (43243348798)',array('class'=>'lbl' )); !!} {!! Form::text('account_no',isset($braintreeMerchant->funding['accountNumberLast4']) ? '*******'.$braintreeMerchant->funding['accountNumberLast4'] : "",array('id'=>'account_no','class'=>'text')) !!}
{!! Form::label('type_of_account', 'Type Of Account (Savings)',array('class'=>'lbl' )); !!} {!! Form::text('type_of_account',$client->fldClientTypeofAccount,array('id'=>'type_of_account','class'=>'text')) !!}
{!! Form::label('routing_no', 'Routing Number (122100024)',array('class'=>'lbl' )); !!} {!! Form::text('routing_no',isset($braintreeMerchant->funding['routingNumber']) ? $braintreeMerchant->funding['routingNumber'] : "",array('id'=>'routing_no','class'=>'text')) !!}

Banking Address

{!! Form::label('banking_street', ' Street',array('class'=>'lbl' )); !!} {!! Form::text('banking_street',$client->fldBankingAddress,array('id'=>'banking_street','class'=>'text')) !!}
{!! Form::label('banking_city', '* City',array('class'=>'lbl' )); !!} {!! Form::text('banking_city',$client->fldBankingCity,array('id'=>'banking_city','class'=>'text')) !!}
{!! Form::label('banking_state', '* State',array('class'=>'lbl' )); !!} {!! Form::select('banking_state',array('0' => 'Select one')+App\Models\State::displayState(),$client->fldBankingState,array('id'=>'state','data-placeholder'=>'Select State', 'class'=>'required')) !!}
{!! Form::label('banking_zip', '* ZIP',array('class'=>'lbl' )); !!} {!! Form::text('banking_zip',$client->fldBankingZip,array('id'=>'banking_zip','class'=>'text')) !!}

Shipping Information

Shipping Address

{!! Form::label('shipping_address', '* Street',array('class'=>'lbl' )); !!} {!! Form::text('shipping_address',isset($shipping->fldClientsShippingAddress) ? $shipping->fldClientsShippingAddress : "",array('id'=>'shipping_street','class'=>'text')) !!} @if($errors->updateProfile->first('shipping_address'))
{!!$errors->updateProfile->first('shipping_address')!!}
@endif
{!! Form::label('shipping_city', '* City',array('class'=>'lbl' )); !!} {!! Form::text('shipping_city',isset($shipping->fldClientsShippingCity) ? $shipping->fldClientsShippingCity : "",array('id'=>'shipping_city','class'=>'text')) !!} @if($errors->updateProfile->first('shipping_city'))
{!!$errors->updateProfile->first('shipping_city')!!}
@endif
{!! Form::label('shipping_state', '* State',array('class'=>'lbl' )); !!} {!! Form::select('shipping_state',array('' => 'Select one')+App\Models\State::displayState(),isset($shipping->fldClientsShippingState) ? $shipping->fldClientsShippingState : "",array('id'=>'state','data-placeholder'=>'Select State', 'class'=>'required')) !!} @if($errors->updateProfile->first('shipping_state'))
{!!$errors->updateProfile->first('shipping_state')!!}
@endif
{!! Form::label('shipping_zip', '* ZIP',array('class'=>'lbl' )); !!} {!! Form::text('shipping_zip',isset($shipping->fldClientsShippingCity) ? $shipping->fldClientsShippingZip : "",array('id'=>'shipping_zip','class'=>'text')) !!} @if($errors->updateProfile->first('shipping_zip'))
{!!$errors->updateProfile->first('shipping_zip')!!}
@endif

Credit Card Information @if($client->fldClientBraintreeCustomerID != "") ({{ $client->fldClientBraintreeCustomerID }}) @endif

{!! Form::label('cc_firstname', 'First Name',array('class'=>'lbl' )); !!} {!! Form::text('cc_firstname',isset($braintreeClient->firstName) ? $braintreeClient->firstName : "",array('id'=>'cc_firstname','class'=>'text')) !!}
{!! Form::label('cc_lastname', 'Last Name',array('class'=>'lbl' )); !!} {!! Form::text('cc_lastname',isset($braintreeClient->lastName) ? $braintreeClient->lastName : "",array('id'=>'cc_lastname','class'=>'text')) !!}
{!! Form::label('cc_no', 'Credit Card Number (378282246310005)',array('class'=>'lbl' )); !!} {!! Form::text('cc_no',isset($braintreeClient->creditCards{0}->maskedNumber) ? $braintreeClient->creditCards{0}->maskedNumber : "",array('id'=>'cc_no','class'=>'text')) !!}
{!! Form::label('cvv', 'CVV (1234)',array('class'=>'lbl' )); !!} {!! Form::text('cvv',$client->fldClientCVV,array('id'=>'cvv','class'=>'text')) !!}
{!! Form::label('cc_exp_mm', 'Expiration Date',array('class'=>'lbl' )); !!}
{!! Form::label('cc_exp_mm', 'Month',array('class'=>'lbl small light' )); !!} {!! Form::selectMonth('cc_exp_mm', isset($braintreeClient->creditCards{0}->expirationMonth) ? $braintreeClient->creditCards{0}->expirationMonth : 12, ['class' => 'field']) !!}
{!! Form::label('bcc_exp_yy', 'Year',array('class'=>'lbl small light' )); !!}
{!! Form::label('invite_code', 'Invite Code',array('class'=>'lbl small light' )); !!} {!! Form::text('invite_code',"",array('id'=>'invite_code','class'=>'text')) !!}
{!! Form::button(' Save Profile',array('class'=>'uk-button uk-form-help-inline text-uppercase uk-text-bold uk-button-primary ','type'=>'submit','name'=>'submit'))!!}
{!! Form::close() !!} @stop @section('headercodes') {!! Html::style('_front/plugins/jasny/css/jasny-bootstrap.min.css') !!} {!! Html::style('_front/plugins/password/strength.css') !!} @stop @section('extracodes') {{-- */ /* */ /* --}} {!! Html::script('_front/assets/js/mask.js') !!} {!! Html::script('_front/plugins/password/strength.js') !!} {!! Html::script('_front/plugins/jasny/js/jasny-bootstrap.min.js') !!} @stop