@extends('layouts._front.dashboard_manager') @section('content') {!! Form::open(array('url' => '/dashboard/sales/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 @if($errors->updateProfile->first('image') && $errors->updateProfile->first('image')=="validation.img_min_size")
{!!IMAGES_DIMENSION_ERROR!!}
@endif

Profile

{!! Form::label('firstname', '* First Name',array('class'=>'lbl' )); !!} {!! Form::text('firstname',$manager->fldManagerFirstname,array('id'=>'firstname','required','class'=>'text')) !!} @if($errors->updateProfile->first('firstname'))
{!!$errors->updateProfile->first('firstname')!!}
@endif
{!! Form::label('lastname', '* Last Name',array('class'=>'lbl' )); !!} {!! Form::text('lastname',$manager->fldManagerLastname,array('id'=>'lastname','required','class'=>'text')) !!} @if($errors->updateProfile->first('lastname'))
{!!$errors->updateProfile->first('lastname')!!}
@endif
{!! Form::label('phone', '* Contact # eg.. 123-456-7890',array('class'=>'lbl' )); !!} {!! Form::text('phone',$manager->fldManagerPhoneNo,array('id'=>'phone','required','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',$manager->fldManagerEmail,array('id'=>'email','required','class'=>'text')) !!} @if($errors->updateProfile->first('email'))
{!!$errors->updateProfile->first('email')!!}
@endif

Address Information

{!! Form::label('address', '* Street',array('class'=>'lbl' )); !!} {!! Form::text('address',$manager->fldManagerAddress,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',$manager->fldManagerCity,array('id'=>'city','required','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($manager->fldManagerState) ? $manager->fldManagerState : "",array('id'=>'state','data-placeholder'=>'Select State', 'class'=>'required')) !!} @if($errors->updateProfile->first('state'))
Please select your State
@endif
{!! Form::label('zip', '* ZIP',array('class'=>'lbl' )); !!} {!! Form::text('zip',$manager->fldManagerZip,array('id'=>'zip','required','class'=>'text')) !!} @if($errors->updateProfile->first('zip'))
{!!$errors->updateProfile->first('zip')!!}
@endif
{!! Form::label('career', 'Career',array('class'=>'lbl' )); !!} {!! Form::text('career',$manager->fldManagerProfession,array('id'=>'career','class'=>'text')) !!}
{!! Form::label('authorization', 'Authorization',array('class'=>'lbl' )); !!} {!! Form::text('authorization',$manager->fldManagerAuthorization,array('id'=>'authorization','class'=>'text')) !!}

Profile Image

@if($manager->fldManagerImage != "") {!! Html::image(MANAGER_IMAGE_PATH.$manager->fldManagerID.'/'.MEDIUM_IMAGE.$manager->fldManagerImage,'',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

fldManagerMobileAlerts }}>
{!! Form::label('promo_code', 'Promo Code',array('class'=>'lbl table-text light' )); !!} {!! Form::text('promo_code',"PQR952Y0",array('id'=>'promo_code','class'=>'text','disabled'=>'disabled')) !!}
{!! 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',$manager->fldManagerEmail,array('id'=>'username','class'=>'text','disabled'=>'disabled')) !!}
{!! Form::label('password', 'Password',array('class'=>'lbl table-text light' )); !!} {!! Form::password('password',array('id'=>'password','class'=>'text')) !!}

Banking Information @if($manager->fldManagerBrainTreeMerchantID != "") ({{ $manager->fldManagerBrainTreeMerchantID }}) @endif

{!! Form::label('bank_name', 'Bank Name',array('class'=>'lbl' )); !!} {!! Form::text('bank_name',$manager->fldManagerBankName,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',$manager->fldManagerTypeofAccount,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',isset($braintreeMerchant->individual['address']['streetAddress']) ? $braintreeMerchant->individual['address']['streetAddress'] : "",array('id'=>'banking_street','class'=>'text')) !!}
{!! Form::label('banking_city', 'City',array('class'=>'lbl' )); !!} {!! Form::text('banking_city',isset($braintreeMerchant->individual['address']['locality']) ? $braintreeMerchant->individual['address']['locality'] : "",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(),isset($braintreeMerchant->individual['address']['region']) ? $braintreeMerchant->individual['address']['region'] : 0,array('id'=>'state','data-placeholder'=>'Select State', 'class'=>'required')) !!}
{!! Form::label('banking_zip', 'ZIP',array('class'=>'lbl' )); !!} {!! Form::text('banking_zip',isset($braintreeMerchant->individual['address']['postalCode']) ? $braintreeMerchant->individual['address']['postalCode'] : "" ,array('id'=>'banking_zip','class'=>'text')) !!}

Shipping Information

Shipping Address

{!! Form::label('shipping_address', '* Street',array('class'=>'lbl' )); !!} {!! Form::text('shipping_address',isset($shipping->fldManagerShippingAddress) ? $shipping->fldManagerShippingAddress : "",array('id'=>'shipping_address','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->fldManagerShippingCity) ? $shipping->fldManagerShippingCity : "",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->fldManagerShippingState) ? $shipping->fldManagerShippingState : "",array('id'=>'shipping_state','data-placeholder'=>'Select State', 'class'=>'required')) !!} @if($errors->updateProfile->first('shipping_state'))
Please select your State
@endif
{!! Form::label('shipping_zip', '* ZIP',array('class'=>'lbl' )); !!} {!! Form::text('shipping_zip',isset($shipping->fldManagerShippingZip) ? $shipping->fldManagerShippingZip : "",array('id'=>'shipping_zip','class'=>'text')) !!} @if($errors->updateProfile->first('shipping_zip'))
{!!$errors->updateProfile->first('shipping_zip')!!}
@endif

Credit Card Information @if($manager->fldManagerBraintreeCustomerID != "") ({{ $manager->fldManagerBraintreeCustomerID }}) @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_last_name','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',$manager->fldManagerCVV,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') !!} @stop @section('extracodes') {{-- */ /* */ /* --}} {!! Html::script('_front/plugins/jasny/js/jasny-bootstrap.min.js') !!} @stop