<?php $__env->startSection('content'); ?>

    
<div class="row margin-top-55">
    <div class="col-xs-2">
        <?php echo $__env->make('offerings.registration.left_nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    </div>
	<div class="col-xs-10">
		<div id="application-form-field" class="gray_container">
			<div class="row tablemargin">
				<?php if(empty($folio)): ?>
					<?php echo Form::open(array('id' => 'folio_form')); ?>
				<?php else: ?>
					<?php echo Form::open(array('method' => 'put', 'id' => 'folio_form')); ?>	
				<?php endif; ?>
				
				<?php if($errors->has()): ?>
					<div class="alert alert-danger">
					<?php foreach ($errors->all() as $row): ?>
					  <div><?php echo $row; ?></div>
					<?php endforeach; ?>
					</div>
				<?php endif; ?>
				<div class="col-md-12">
					<h1>Open an Account: Personal Information</h1>
					<h5>All fields are required, unless marked <span>(optional).</span></h5>
				</div>
                
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="user-title" class="col-sm-12 control-label">Title <span>(optional)</span></label>
							<div class="col-sm-2">
                            	<?php if(empty($folio)): ?>
								<?php echo Form::select('title', array('Dr.' => 'Dr.', 'Ms.' => 'Ms.', 'Miss' => 'Miss', 'Mr.' => 'Mr.', 'Mrs.' => 'Mrs.'), null, array('id' => 'user-title', 'class' => 'form-control')); ?>
                                <?php else: ?>
                                	<?php echo $folio->title; ?>
                                <?php endif; ?>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<div class="row">
						<div class="col-md-4 no-pad">
							<div class="form-group">
								<label for="user-name" class="col-sm-12 control-label">First Name</label>
								<div class="col-sm-12">
                                	<?php if(empty($folio)): ?>
									<input type="text" maxlength="20" name="firstName" value="<?php echo (Input::old('firstName'))?Input::old('firstName'):''; ?>" class="form-control" id="first-name" placeholder="First Name">
                                    <?php else: ?>
                                		<?php echo $folio->firstName; ?>
                                	<?php endif; ?>
								</div>
							</div>
						</div>
                        <?php if(empty($folio) || !empty($folio->middleName)): ?>
						<div class="col-md-4 no-pad left-margin">
							<div class="form-group left-margin">
								<label for="user-name" class="col-sm-12 control-label">Middle Initial</label>
								<div class="col-sm-5">
                                <?php if(empty($folio->middleName)): ?>
									<?php echo Form::text('middleName', null, array('maxlength' => '1', 'class' => 'form-control', 'id' => 'first-name')); ?>
                                 <?php else: ?>
                                 	<?php echo $folio->middleName; ?>
                                 <?php endif; ?>
								</div>
							</div>
						</div>
                        <?php endif; ?>
					</div>
				</div>
				<div class="col-md-12">
					<div class="row">
						<div class="col-md-4 no-pad">
							<div class="form-group">
								<label for="last-name" class="col-sm-12 control-label">Last Name</label>
								<div class="col-sm-12">
                                <?php if(empty($folio)): ?>
									<?php echo Form::text('lastName', null, array('maxlength' => '35', 'class' => 'form-control', 'id' => 'last-name', 'placeholder' => 'Last Name')); ?>
                                <?php else: ?>
                                	<?php echo $folio->lastName; ?>
                                <?php endif; ?>
								</div>
							</div>
						</div>
                        <?php if(empty($folio) || !empty($folio->suffix)): ?>
						<div class="col-md-4 no-pad left-margin">
							<div class="form-group left-margin">
								<label for="suffix" class="col-sm-12 control-label">Suffix <span>(optional)</span></label>
								<div class="col-sm-4">
                                <?php if(empty($folio->suffix)): ?>
									<?php echo Form::select('suffix', array('' => '--', 'Jr.' => 'Jr.', 'Sr.' => 'Sr.', 'II' => 'II', 'III' => 'III', 'IV' => 'IV'), null, array('id' => 'suffix', 'class' => 'form-control')); ?>
                                <?php else: ?>
                                	<?php echo $folio->suffix; ?>
                                <?php endif; ?>	
								</div>
							</div>
						</div>
                        <?php endif; ?>
					</div>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="date-of-birth" class="col-sm-12 control-label">Date of birth</label>
							<div class="col-sm-7" style="margin-left:15px">
								<div class="row">
                                	<?php if(empty($folio->dateOfBirth)): ?>
									<div class="col-sm-3 no-pad"><?php echo Form::text('month', null, array('maxlength' => '2', 'class' => 'form-control', 'id' => 'month', 'placeholder' => 'MM')); ?></div>
									<div class="col-sm-1">/</div>
									<div class="col-sm-3 no-pad"><?php echo Form::text('day', null, array('maxlength' => '2', 'class' => 'form-control', 'id' => 'day', 'placeholder' => 'DD')); ?></div>
									<div class="col-sm-1">/</div>
									<div class="col-sm-4 no-pad"><?php echo Form::text('year', null, array('maxlength' => '4', 'class' => 'form-control', 'id' => 'year', 'placeholder' => 'YYYY')); ?></div>
                                    <?php else: ?>
                                    	<?php echo date("m/d/Y", strtotime($folio->dateOfBirth)); ?>
                                    <?php endif; ?>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="social-security-number" class="col-sm-12 control-label">Social Security Number</label>
							<div class="col-sm-7" style="margin-left:15px">
								<div class="row">
                                	<?php if(empty($folio->tid)): ?>
									<div class="col-sm-3 no-pad"><?php echo Form::text('ssn1', null, array('maxlength' => '3', 'class' => 'form-control', 'id' => 'ssn1', 'placeholder' => 'XXX')); ?></div>
									<div class="col-sm-1">-</div>
									<div class="col-sm-3 no-pad"><?php echo Form::text('ssn2', null, array('maxlength' => '2', 'class' => 'form-control', 'id' => 'ssn2', 'placeholder' => 'XX')); ?></div>
									<div class="col-sm-1">-</div>
									<div class="col-sm-4 no-pad"><?php echo Form::text('ssn3', null, array('maxlength' => '4', 'class' => 'form-control', 'id' => 'ssn3', 'placeholder' => 'XXXX')); ?></div>
                                    <?php else: ?>
                                    	<?php echo $folio->tid; ?>
									<?php endif; ?>
                                </div>
							</div>
						</div>
					</div>
				</div>
        		<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="email1" class="col-sm-12 control-label">E-mail</span></label>
							<div class="col-sm-6">
								<div class="row">
                                	<?php if(empty($folio->email1) && Auth::guest()): ?>
									<div class="col-sm-8"><input type="text" name="email1" value="<?php echo !empty($_COOKIE['user_email'])?$_COOKIE['user_email']:Input::old('email1'); ?>" class="form-control"></div>
                                    <?php else: ?>
                                    	<?php echo Auth::user()->email; ?>	
                                    <?php endif; ?>
                                </div>
							</div>
						</div>
					</div>
				</div>
                <?php if(Auth::guest()): ?>
              	<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="password" class="col-sm-12 control-label">Password</span></label>
							<div class="col-sm-6">
								<div class="row">
									<div class="col-sm-8"><input type="password" id="user_pass" name="password" value="" class="form-control"></div>
                                </div>
							</div>
						</div>
					</div>
				</div>
              	<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="confirm_password" class="col-sm-12 control-label"> Confirm your Password</span></label>
							<div class="col-sm-6">
								<div class="row">
									<div class="col-sm-8"><input type="password"  name="confirm_password" value="" class="form-control"></div>
                                </div>
							</div>
						</div>
					</div>
				</div>
                <?php endif; ?>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="evening-phone-number" class="col-sm-12 control-label">Evening Phone Number</span></label>
                            <div class="col-sm-7" style="margin-left:15px">
								<div class="row">
                                	<?php
									if(!empty($folio->eveningTelephone)):
										$eveningTelephone1 = substr($folio->eveningTelephone, 0, 3);
										$eveningTelephone2 = substr($folio->eveningTelephone, 3, 3);
										$eveningTelephone3 = substr($folio->eveningTelephone, 6);
									else:
										$eveningTelephone1 = null;
										$eveningTelephone2 = null;
										$eveningTelephone3 = null;
									endif;
									?>
									<div class="col-sm-3 no-pad"><?php echo Form::text('eveningTelephone1', $eveningTelephone1, array('maxlength' => '3', 'minlength' => '3', 'class' => 'form-control', 'placeholder' => 'XXX', 'data-bv-stringlength' => 'false')); ?></div>
									<div class="col-sm-1">-</div>
									<div class="col-sm-3 no-pad"><?php echo Form::text('eveningTelephone2', $eveningTelephone2, array('maxlength' => '3', 'minlength' => '3', 'class' => 'form-control', 'placeholder' => 'XXX', 'data-bv-stringlength' => 'false')); ?></div>
									<div class="col-sm-1">-</div>
									<div class="col-sm-4 no-pad"><?php echo Form::text('eveningTelephone3', $eveningTelephone3, array('maxlength' => '4', 'minlength' => '4', 'class' => 'form-control', 'placeholder' => 'XXXX', 'data-bv-stringlength' => 'false')); ?></div>
                                </div>
							</div>
						</div>
					</div>
				</div>
                <div class="newInputWidth">
                    <div class="col-md-12 bottom-margin">
                        <div class="row">
                            <div class="form-group">
                                <label for="evening-phone-number" class="col-sm-12 control-label">Day Phone Number</span></label>
                                <div class="col-sm-12" style="margin-left: 15px;">
                                    <div class="row" style="width: 61%;">
                                        <?php
                                        if(!empty($folio->dayTelephone)):
                                            $dayTelephone1 = substr($folio->dayTelephone, 0, 3);
                                            $dayTelephone2 = substr($folio->dayTelephone, 3, 3);
                                            $dayTelephone3 = substr($folio->dayTelephone, 6);
                                        else:
                                            $dayTelephone1 = null;
                                            $dayTelephone2 = null;
                                            $dayTelephone3 = null;
                                        endif;
                                        ?>
                                        <div class="col-sm-3 no-pad"><?php echo Form::text('dayTelephone1', $dayTelephone1, array('maxlength' => '3', 'minlength' => '3', 'class' => 'form-control', 'placeholder' => 'XXX', 'data-bv-stringlength' => 'false')); ?></div>
                                        <div class="col-sm-1">-</div>
                                        <div class="col-sm-3 no-pad"><?php echo Form::text('dayTelephone2', $dayTelephone2, array('maxlength' => '3', 'minlength' => '3', 'class' => 'form-control', 'placeholder' => 'XXX', 'data-bv-stringlength' => 'false')); ?></div>
                                        <div class="col-sm-1">-</div>
                                        <div class="col-sm-4 no-pad"><?php echo Form::text('dayTelephone3', $dayTelephone3, array('maxlength' => '4', 'minlength' => '4', 'class' => 'form-control', 'placeholder' => 'XXXX', 'data-bv-stringlength' => 'false')); ?></div>
                                        
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-12" style="margin: 10px 0 0 -15px;">(Input telephone numbers as numeric characters only. Do not include symbols. Eg: 7032454000 or for extensions: 70324540001234)</div> 
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
				<div style="clear:both;"></div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<hr/>
							<label for="social-security-number" class="col-sm-12 control-label"><h1>Citizenship Status</h1></label>
							<div class="col-sm-8">
								<div class="controls">
									<label class="inline">Select one:</label>
									<?php if(!empty($folio->citizenship)): ?>	
										<label class="radio inline">
											<?php echo Form::radio('citizenship', 'C', $folio->citizenship == 'C'); ?>
											U.S Citizen
										</label>
										<label class="radio inline">
											<?php echo Form::radio('citizenship', 'R', $folio->citizenship == 'R'); ?>
											Resident Alien
										</label>
									<?php else: ?>
										<label class="radio inline">
										<?php echo Form::radio('citizenship', 'C'); ?>
										U.S Citizen
										</label>
										<label class="radio inline">
											<?php echo Form::radio('citizenship', 'R'); ?>
											Resident Alien
										</label>
									<?php endif; ?>
								</div>
                                <div class="clear-fix"></div>	
							</div>
						</div>
					</div>
					<hr/>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label class="col-sm-12 control-label"><h1>Primary Address <span>(U.S. Street addresses only; no P.O. Boxes)</span></h1></label>
							<label class="col-sm-12 control-label">Address 1</label>
							<div class="col-sm-6">
								<input type="text" maxlength="35" name="line1" class="form-control" id="address1" value="<?php echo !empty($folio->primaryAddress->line1)?$folio->primaryAddress->line1:Input::old('line1'); ?>">
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label class="col-sm-12 control-label">Address 2 <span>(optional)</span></label>
							<div class="col-sm-6">	
								<input type="text" maxlength="35" name="line2" id="address2" value="<?php echo !empty($folio->primaryAddress->line2)?$folio->primaryAddress->line2:Input::old('line2'); ?>" class="form-control">
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<div class="row">
						<div class="col-md-3 no-pad">
							<div class="form-group">
								<label for="city-name" class="col-sm-12 control-label">City</label>
								<div class="col-sm-12">
									<input type="text" name="city" value="<?php echo !empty($folio->primaryAddress->city)?$folio->primaryAddress->city:Input::old('city'); ?>" class="form-control" id="city-name">
								</div>
							</div>
						</div>
						<div class="col-md-4 no-pad left-margin">
							<div class="form-group left-margin">
								<label for="suffix" class="col-sm-12 control-label">State</label>
								<div class="col-sm-10">
									<?php if(!empty($folio->primaryAddress->state)): ?>
										<?php echo Form::select('state', $states, $folio->primaryAddress->state, array('class' => 'form-control')); ?>	
									<?php else: ?>	
										<?php echo Form::select('state', $states, null, array('class' => 'form-control')); ?>
									<?php endif; ?>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="date-of-birth" class="col-sm-12 control-label">Zip Code</label>
							<div class="col-sm-6" style="margin-left:15px">
								<div class="row">
									<div class="col-sm-4 no-pad"><input type="text" name="zipcode" class="form-control" id="zip-code1" value="<?php echo !empty($folio->primaryAddress->zipcode)?$folio->primaryAddress->zipcode:Input::old('zipcode'); ?>"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<div class="col-sm-6">
								<label class="control-label">Country: United States</label>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<h1>Open an Account: Compliance Information</h1>
					<h5>Securities industry regulations require that we collect all of the information requested in this section to determine investment suitability. It will remain confidential in accordance with our privacy policy.</h5>
				</div>
				<div class="col-md-12">
					<hr/>
					<h1>Employment Information</h1>
					<h5>We are required to record your employment status. Please note, if you're employed (or self-employed) we will also ask for your occupation, as well as employer's name and address.</h5>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="status" class="col-sm-12 control-label">Status</label>
							<div class="col-sm-3">
								<?php if(!empty($folio->employmentStatus)): ?>
									<?php echo Form::select('employmentStatus', array('Employed' => 'Employed', 'Self-Employed' => 'Self-Employed', 'Retired' => 'Retired', 'Student' => 'Student', 'Unemployed' => 'Unemployed', 'Other' => 'Other'), $folio->employmentStatus, array('class' => 'form-control')); ?>
								<?php else: ?>
									<?php echo Form::select('employmentStatus', array('Employed' => 'Employed', 'Self-Employed' => 'Self-Employed', 'Retired' => 'Retired', 'Student' => 'Student', 'Unemployed' => 'Unemployed', 'Other' => 'Other'), null, array('class' => 'form-control')); ?>
								<?php endif; ?>	
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin" id="employerName">
					<div class="row">
						<div class="form-group">
							<label class="col-sm-12 control-label">Company Name</label>
							<div class="col-sm-6">	
								<input type="text" name="employerName" value="<?php echo !empty($folio->employerName)?$folio->employerName:Input::old('employerName'); ?>" class="form-control"> 
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin" id="employer_line1">
					<div class="row">
						<div class="form-group">
							<label class="col-sm-12 control-label">Address 1</label>
							<div class="col-sm-6">
								<input type="text" maxlength="35" name="employer_line1" value="<?php echo !empty($folio->employerAddress->line1)?$folio->employerAddress->line1:Input::old('employer_line1'); ?>" class="form-control">
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin" id="employer_line2">
					<div class="row">
						<div class="form-group">
							<label class="col-sm-12 control-label">Address 2 <span>(Optional)</span></label>
							<div class="col-sm-6">
								<input type="text" maxlength="35" name="employer_line2" value="<?php echo !empty($folio->employerAddress->line2)?$folio->employerAddress->line2:Input::old('employer_line2'); ?>" class="form-control">	
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12" id="employer_city">
					<div class="row">
						<div class="col-md-3 no-pad">
							<div class="form-group">
								<label for="city-name" class="col-sm-12 control-label">City</label>
								<div class="col-sm-12">
									  <input type="text" name="employer_city" value="<?php echo !empty($folio->employerAddress->city)?$folio->employerAddress->city:Input::old('employer_city'); ?>" class="form-control">
								</div>
							</div>
						</div>
						<div class="col-md-4 no-pad left-margin">
							<div class="form-group left-margin">
								<label for="suffix" class="col-sm-12 control-label">State</label>
								<div class="col-sm-10">
									<?php if(!empty($folio->employerAddress->state)): ?>
										<?php echo Form::select('employer_state', $states, $folio->employerAddress->state, array('class' => 'form-control')); ?>
									<?php else: ?>
										<?php echo Form::select('employer_state', $states, null, array('class' => 'form-control')); ?>	
									<?php endif; ?>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin" id="employer_zipcode">
					<div class="row">
						<div class="form-group">
							<label class="col-sm-12 control-label">Zip or Postal Code</label>
							<div class="col-sm-2">
								<input type="text" name="employer_zipcode" value="<?php echo !empty($folio->employerAddress->zipcode)?$folio->employerAddress->zipcode:Input::old('employer_zipcode'); ?>" class="form-control">	
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin" id="employer_country">
					<div class="row">
						<div class="form-group">
							<div class="col-sm-6">
								<label class="control-label">Country: United States</label>
							</div>
						</div>
					</div>
				</div>
                <div class="col-md-12">
                	<hr/>
                	<h1>General Financial Information</h1>
              	</div>
              	<div class="col-md-12 bottom-margin">
                	<div class="row">
                		<div class="form-group">
                        	<label for="annual-income" class="col-sm-12 control-label">Annual Income</label>
                        	<div class="col-sm-4">
                      			<?php if(!empty($folio->annualIncome)): ?>
									<?php echo Form::select('annualIncome', array('1' => 'ZERO - $25,000', '2' => '$25,000 - $50,000', '3' => '$50,000 - $100,000', '4' => '$100,000 - $200,000', '5' => '$200,000 - $300,000', '6' => '$300,000 - $500,000', '7' => 'OVER $500,000'), $folio->annualIncome, array('class' => 'form-control', 'id' => 'annual-income')); ?>
								<?php else: ?>
									<?php echo Form::select('annualIncome', array('1' => 'ZERO - $25,000', '2' => '$25,000 - $50,000', '3' => '$50,000 - $100,000', '4' => '$100,000 - $200,000', '5' => '$200,000 - $300,000', '6' => '$300,000 - $500,000', '7' => 'OVER $500,000'), null, array('class' => 'form-control', 'id' => 'annual-income')); ?>
								<?php endif; ?>	
                        	</div>
                      	</div>
                  	</div>
              	</div>
              	<div class="col-md-12 bottom-margin">
               		<div class="row">
                   		<div class="form-group">
                        	<label for="total-net-worth" class="col-sm-12 control-label">Total Net Worth</label>
                        	<div class="col-sm-4">
                           		<?php if(!empty($folio->netWorth)): ?>
									<?php echo Form::select('netWorth', array('1' => 'ZERO - $25,000', '2' => '$25,000 - $50,000', '3' => '$50,000 - $200,000', '4' => '$200,000 - $500,000', '5' => '$500,000 - $1,000,000', '6' => '$1,000,000 - $2,000,000', '7' => '$2,000,000 - $3,000,000', '8' => 'OVER $3,000,000'), $folio->netWorth, array('class' => 'form-control', 'id' => 'total-net-worth')); ?>
								<?php else: ?>
									<?php echo Form::select('netWorth', array('1' => 'ZERO - $25,000', '2' => '$25,000 - $50,000', '3' => '$50,000 - $200,000', '4' => '$200,000 - $500,000', '5' => '$500,000 - $1,000,000', '6' => '$1,000,000 - $2,000,000', '7' => '$2,000,000 - $3,000,000', '8' => 'OVER $3,000,000'), null, array('class' => 'form-control', 'id' => 'total-net-worth')); ?>
								<?php endif; ?> 
                                <span>(Excluding your home)</span>
                        	</div>
                      	</div>
                  	</div>
              	</div>
                <div class="col-md-12 bottom-margin">
              		<div class="row">
                    	<div class="form-group">
                        	<label for="liquid-net-worth" class="col-sm-12 control-label">Liquid Net Worth</label>
                        	<div class="col-sm-4">
                           		<?php if(!empty($folio->liquidNetWorth)): ?>
									<?php echo Form::select('liquidNetWorth', array('1' => 'ZERO - $25,000', '2' => '$25,000 - $50,000', '3' => '$50,000 - $200,000', '4' => '$200,000 - $500,000', '5' => '$500,000 - $1,000,000', '6' => '$1,000,000 - $2,000,000', '7' => '$2,000,000 - $3,000,000', '8' => 'OVER $3,000,000'), $folio->liquidNetWorth, array('class' => 'form-control', 'id' => 'liquid-net-worth')); ?>
								<?php else: ?>
									<?php echo Form::select('liquidNetWorth', array('1' => 'ZERO - $25,000', '2' => '$25,000 - $50,000', '3' => '$50,000 - $200,000', '4' => '$200,000 - $500,000', '5' => '$500,000 - $1,000,000', '6' => '$1,000,000 - $2,000,000', '7' => '$2,000,000 - $3,000,000', '8' => 'OVER $3,000,000'), null, array('class' => 'form-control', 'id' => 'liquid-net-worth')); ?>
								<?php endif; ?> 
								<span>(Cash, securities, etc.)</span>
                        	</div>
                      	</div>
                  	</div>
                </div>
				<div class="col-md-12  bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="social-security-number" class="col-sm-12 control-label no-bold">Are you interested in Private Placement opportunities?</label>
							<div class="col-sm-12">
								<div class="controls">
									<label class="radio inline">
                                    	<?php 
										$private_placement = (!empty($folio) && empty($folio->accreditedInvestorNetWorth) && empty($folio->accreditedInvestorAnnualIncome) && empty($folio->previousPrivatePlacementExperience) )?true:false;  
										echo Form::radio('private_placement', '0', $private_placement).' No';
										?>
                                    </label>
									<label class="radio inline">
										<?php
										$private_placement = ( !empty($folio->accreditedInvestorNetWorth) || !empty($folio->accreditedInvestorAnnualIncome) || !empty($folio->previousPrivatePlacementExperience) )?true:false; 
										echo Form::radio('private_placement', '1', $private_placement).' Yes';  
										?>	
									</label>
								</div>
                                <div class="clear-fix"></div>	
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12  bottom-margin hidden" id="private_placement">
					<div class="row">
               			<div class="col-sm-12">
							You are not required to answer the questions below but you will not be able to participate in private security offerings unless you provide answers. 
						</div>
						<div class="form-group">
							<label for="social-security-number" class="col-sm-12 control-label"><b>To determine your "Accredited Investor" status, as defined in Rule 501(a) of Regulation D of the Securities Act of 1933, please answer the following questions:</b></label>
							<div class="col-sm-12">
								<div class="row">
									<div class="col-sm-1 col-pad">1.</div>
									<div class="col-sm-11">
										<label class="no-bold">Are you an individual whose individual Net Worth, or Joint Net Worth with your spouse, exceeds $1,000,000. Excluding the value of your primary residence?</label>
										<div class="controls">
											<label class="radio inline">
                                            	<?php echo Form::radio('accreditedInvestorNetWorth', '0', (isset($folio->accreditedInvestorNetWorth) && $folio->accreditedInvestorNetWorth === false) ); ?> 
                                                No
											</label>
											<label class="radio inline">
                                            	<?php echo Form::radio('accreditedInvestorNetWorth', '1', (isset($folio->accreditedInvestorNetWorth) && $folio->accreditedInvestorNetWorth === true) ); ?> 
												Yes
											</label>
										</div>
                                        <div class="clear-fix"></div>
									</div>
								</div>
							</div>
							<div class="col-sm-12">
								<div class="row">
									<div class="col-sm-1 col-pad">2.</div>
									<div class="col-sm-11">
										<label class="no-bold">Have you had individual income in excess of $200,000 in each of the most recent 2 years or joint income with your spouse in excess of $300,000 in each of the same years, and do you reasonably expect to reach the same income level in the current year?</label>
										<div class="controls">
											<label class="radio inline">
                                            	<?php echo Form::radio('accreditedInvestorAnnualIncome', '0', (isset($folio->accreditedInvestorAnnualIncome) && $folio->accreditedInvestorAnnualIncome === false) ); ?> 
												No
											</label>
											<label class="radio inline">
                                            	<?php echo Form::radio('accreditedInvestorAnnualIncome', '1', (isset($folio->accreditedInvestorAnnualIncome) && $folio->accreditedInvestorAnnualIncome === true) ); ?> 
												 Yes
											</label>
										</div>
                                        <div class="clear-fix"></div>
									</div>
								</div>
							</div>
							<div class="col-sm-12">
								<div class="row">
									<div class="col-sm-1 col-pad">3.</div>
									<div class="col-sm-11">
										<label class="no-bold">Have you had previous experience investing in Private Placements?</label>
										<div class="controls">
											<label class="radio inline">
                                            	<?php echo Form::radio('previousPrivatePlacementExperience', '0', (isset($folio->previousPrivatePlacementExperience) && $folio->previousPrivatePlacementExperience === false) ); ?>
												 No
											</label>
											<label class="radio inline">
                                            	<?php echo Form::radio('previousPrivatePlacementExperience', '1', (isset($folio->previousPrivatePlacementExperience) && $folio->previousPrivatePlacementExperience === true) ); ?>
												 Yes
											</label>
										</div>
                                        <div class="clear-fix"></div>
									</div>
								</div>
							</div>
							<div class="col-sm-12 hidden" id="previousExperienceSector">
								<div class="row">
									<div class="col-sm-1"></div>
									<div class="col-sm-11">
										<div class="row border-line">
											<div class="form-group">
												<label class="col-sm-12 control-label">If Yes, please indicate the Industries and Sections you have participated in:</label>
												<div class="col-sm-6">
                                                	<?php echo Form::select('previousExperienceSector', array('AGR' => 'AGRICULTURE', 'BAN' => 'BANKING AND FINANCIAL SERVICES', 'COB' => 'COMMERCIAL BANKING', 'INS' => 'INSURANCE', 'INV' => 'INVESTING', 'INB' => 'INVESTMENT BANKING', 'PIF' => 'POOLED INVESTMENT FUND', 'HFU' => 'HEDGE FUND', 'PEQ' => 'PRIVATE EQUITY', 'VCF' => 'VENTURE CAPITAL FUND', 'OTF' => 'OTHER INVESTMENT FUND', 'OTB' => 'OTHER BANKING AND FINANCIAL SERVICES', 'BUS' => 'BUSINESS SERVICES', 'ENE' => 'ENERGY', 'ELE' => 'ELECTRIC UTILITIES', 'CON' => 'ENERGY CONSERVATION', 'COA' => 'COAL MINING', 'ENV' => 'ENVIRONMENTAL SERVICES', 'OGS' => 'OIL AND GAS', 'OTE' => 'OTHER ENERGY', 'HCA' => 'HEALTH CARE', 'BIO' => 'BIOTECHNOLOGY', 'HIS' => 'HEALTH INSURANCE', 'HOS' => 'HOSPITALS AND PHYSICIANS', 'PHA' => 'PHARMACEUTICALS', 'OTC' => 'OTHER HEALTH CARE', 'MAN' => 'MANUFACTURING', 'RES' => 'REAL ESTATE', 'COR' => 'COMMERCIAL', 'CST' => 'CONSTRUCTION', 'FIN' => 'REITS AND FINANCE', 'RDN' => 'RESIDENTIAL', 'OTS' => 'OTHER REAL ESTATE', 'RET' => 'RETAILING', 'RTA' => 'RESTAURANTS', 'TEC' => 'TECHNOLOGY', 'CPT' => 'COMPUTERS', 'TEL' => 'TELECOMMUNICATIONS', 'OTT' => 'OTHER TECHNOLOGY', 'TRA' => 'TRAVEL', 'AAL' => 'AIRLINES AND AIRPORTS', 'LDG' => 'LODGING AND CONVENTIONS', 'TOU' => 'TOURISM AND TRAVEL SERVICES', 'OTL' => 'OTHER TRAVEL', 'OTH' => 'OTHER'), !empty($folio->previousExperienceSector)?$folio->previousExperienceSector:null, array('class' => 'form-control')); ?>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>						
							<hr/>
						</div>
					</div>
				</div>
				<div class="col-md-12 bottom-margin">
					<div class="row">
						<div class="form-group">
							<label for="social-security-number" class="col-sm-12 control-label"><h1>Compliance Information</h1></label>
							<div class="col-sm-12">
								<div class="row">
									<div class="col-sm-1 col-pad">1.</div>
									<div class="col-sm-11">
										<label class="no-bold">Are you or someone in your household or immediate family a 10% shareholder, policymaking officer or member of the board of directors of a publicly traded company?</label>
										<div class="controls">
											<label class="radio inline">
												<?php echo Form::radio('directorOrTenPercentShareholder', '0', (isset($folio->directorOrTenPercentShareholder) && $folio->directorOrTenPercentShareholder === false) ); ?> No
											</label>
											<label class="radio inline">
												<?php echo Form::radio('directorOrTenPercentShareholder', '1', (isset($folio->directorOrTenPercentShareholder) && $folio->directorOrTenPercentShareholder === true) ); ?> Yes
											</label>
										</div>
                                        <div class="clear-fix"></div>
									</div>
								</div>
							</div>
								
							<div class="col-sm-12 hidden" id="directorOrTenPercentShareholderCompany">
								<div class="row">
									<div class="col-sm-1"></div>
									<div class="col-sm-11">
										<div class="row border-line">
											<div class="form-group">
												<label for="liquid-net-worth" class="col-sm-12 control-label">Enter Trading Symbols: </label>
                                                <?php if (Input::old('directorOrTenPercentShareholderCompany')): ?>
                                                    <?php foreach(Input::old('directorOrTenPercentShareholderCompany') as $value): ?>
                                                    <div class="col-sm-2">
                                                        <input type="text" name="directorOrTenPercentShareholderCompany[]"  value="<?php echo $value; ?>" class="form-control" />
                                                    </div>
                                                    <?php endforeach; ?>
                                                <?php else: ?>
                                              		<div class="col-sm-2">
                                                    	<input type="text" name="directorOrTenPercentShareholderCompany[]"  value="<?php echo !empty($folio->directorOrTenPercentShareholderCompany[0])?$folio->directorOrTenPercentShareholderCompany[0]:''; ?>" class="form-control" />
                                                    </div>
                                                    <div class="col-sm-2">
                                                    	<input type="text" name="directorOrTenPercentShareholderCompany[]"  value="<?php echo !empty($folio->directorOrTenPercentShareholderCompany[1])?$folio->directorOrTenPercentShareholderCompany[1]:''; ?>" class="form-control" />
                                                    </div>
                                                    <div class="col-sm-2">
                                                        <input type="text" name="directorOrTenPercentShareholderCompany[]"  value="<?php echo !empty($folio->directorOrTenPercentShareholderCompany[2])?$folio->directorOrTenPercentShareholderCompany[2]:''; ?>" class="form-control" />	
                                                    </div>
                                                    <div class="col-sm-2">
                                                    	<input type="text" name="directorOrTenPercentShareholderCompany[]"  value="<?php echo !empty($folio->directorOrTenPercentShareholderCompany[3])?$folio->directorOrTenPercentShareholderCompany[3]:''; ?>" class="form-control" />	
                                                    </div>
                                                    <div class="col-sm-2">
                                                    	<input type="text" name="directorOrTenPercentShareholderCompany[]"  value="<?php echo !empty($folio->directorOrTenPercentShareholderCompany[4])?$folio->directorOrTenPercentShareholderCompany[4]:''; ?>" class="form-control" />		
                                                    </div>
                                                <?php endif; ?>

											</div>
										</div>
									</div>
								</div>
							</div>

							<div class="col-sm-12">
								<div class="row">
									<div class="col-sm-1 col-pad">2.</div>
									<div class="col-sm-11">
										<label class="no-bold">Are you, your spoise or any other immediate family members, including parents, in-laws, and siblings that are dependents , employed by or associated with the securities industry (for example, Investment Adviso, Sole Proprieter, Partner, Officer, Director, Branch Manager or Broker at a Broker-Dealer Firm or Municipal Securities Dealer) or a financial regulatory agency, such as FINRA or the New York Stock Exchange? If yes, and if this entity requires that you obtain its approval for to open this account, please select Yes below:</label>
										<div class="controls">
											<label class="radio inline">
												<?php echo Form::radio('finraAffiliated', '0', (isset($folio->finraAffiliated) && $folio->finraAffiliated === false) ); ?> No
											</label>
											<label class="radio inline">
												<?php echo Form::radio('finraAffiliated', '1', (isset($folio->finraAffiliated) && $folio->finraAffiliated === true) ); ?> Yes
											</label>
										</div>
                                        <div class="clear-fix"></div>
									</div>
								</div>
							</div>
								
							<div class="col-sm-12 hidden" id="finraAffiliated">
								<div class="row">
									<div class="col-sm-1"></div>
									<div class="col-sm-11">
										<div class="row border-line">
											<label for="liquid-net-worth" class="col-sm-12 control-label">FINRA Affiliation</label>
											<label class="no-bold padding-all">
											You have indicated a FINRA affiliation that requires us to restrict your account until the employer of the FINRA affiliated person approves.
											<br/><br/>
											Please download, complete and send us the <a href="https://www.folioclient.com/servlets/ProcessAction/nuxeo/proxy?path=/WHITE-LABEL/sections/Public%20Content/forms/FINRACompliance" target="_blank">Compliance Officer Form</a> to un-restrict the account
											</label>
										</div>
									</div>
								</div>
							</div>						
						</div>
					</div>
				</div>                                                        

				<div class="wrap_next_step">
					<button type="submit" class="btn next_step">NEXT STEP  &nbsp; &#62;</button>
				</div>
				<?php echo Form::close(); ?>
			</div> <!--End row-->
		</div>
	</div>
</div>

<?php $__env->startSection('scripts'); ?>
<!-- Include the momentjs library to use later -->
<script src="//oss.maxcdn.com/momentjs/2.8.2/moment.min.js"></script>
<?php echo HTML::style('css/validation/bootstrapValidator.css'); ?>
<?php echo HTML::script('js/validation/bootstrapValidator.min.js'); ?>
<?php if(Auth::guest()): ?>
	<?php echo HTML::script('js/validation/applicationGuestAddRules.js'); ?>
<?php elseif(!empty($folio)): ?>
	<?php echo HTML::script('js/validation/applicationEditRules.js'); ?>
<?php else: ?>
	<?php echo HTML::script('js/validation/applicationAuthAddRules.js'); ?>
<?php endif; ?> 
<script type="text/javascript">
	$(function() {
		$('.label-element').mouseover(function() {
			$(this).tooltip('show');
		});
		
		$('.label-element').mouseout(function() {
			$(this).tooltip('hide');
		});
		
		$( "select[name='employmentStatus']" ).change(function () {
			employmentStatus = $(this).val();
			if(employmentStatus == 'Employed' || employmentStatus == 'Self-Employed')
			{
				//$('#employer_address').removeClass("hidden");
				$('#employerName').removeClass("hidden");
				$('#employer_line1').removeClass("hidden");
				$('#employer_line2').removeClass("hidden");
				$('#employer_city').removeClass("hidden");
				$('#employer_state').removeClass("hidden");
				$('#employer_zipcode').removeClass("hidden");
				$('#employer_country').removeClass("hidden");
			}
			else
			{
				//$('#employer_address').addClass("hidden");
				$('#employerName').addClass("hidden");
				$('#employer_line1').addClass("hidden");
				$('#employer_line2').addClass("hidden");
				$('#employer_city').addClass("hidden");
				$('#employer_state').addClass("hidden");
				$('#employer_zipcode').addClass("hidden");
				$('#employer_country').addClass("hidden");	
			}	
		});
		
		$('input[name="directorOrTenPercentShareholder"]:radio').on("ifClicked", function () {
			value = $(this).val();
			if(value == '1')
				$("#directorOrTenPercentShareholderCompany").removeClass("hidden");
			else
				$("#directorOrTenPercentShareholderCompany").addClass("hidden");				
		});
		
		$('input[name="private_placement"]:radio').on("ifClicked", function () {
			value = $(this).val();
			if(value == '1')
				$("#private_placement").removeClass("hidden");
			else
				$("#private_placement").addClass("hidden");
		});
		
		$('input[name="previousPrivatePlacementExperience"]:radio').on("ifClicked", function () {
			value = $(this).val();
			if(value == '1')
				$("#previousExperienceSector").removeClass("hidden");
			else
				$("#previousExperienceSector").addClass("hidden");
		});
		
		$('input[name="finraAffiliated"]:radio').on("ifClicked", function () {
			value = $(this).val();
			if(value == '1')
				$("#finraAffiliated").removeClass("hidden");
			else
				$("#finraAffiliated").addClass("hidden");
		});
		
		var employmentStatus = $('select[name="employmentStatus"] option:selected').val();
		
		if(employmentStatus == 'Employed' || employmentStatus == 'Self-Employed')
		{
			$('#employer_address').removeClass("hidden");
			$('#employerName').removeClass("hidden");
			$('#employer_line1').removeClass("hidden");
			$('#employer_line2').removeClass("hidden");
			$('#employer_city').removeClass("hidden");
			$('#employer_state').removeClass("hidden");
			$('#employer_zipcode').removeClass("hidden");
			$('#employer_country').removeClass("hidden");	
		}
		else
		{
			$('#employer_address').addClass("hidden");
			$('#employerName').addClass("hidden");
			$('#employer_line1').addClass("hidden");
			$('#employer_line2').addClass("hidden");
			$('#employer_city').addClass("hidden");
			$('#employer_state').removeClass("hidden");
			$('#employer_zipcode').addClass("hidden");
			$('#employer_country').addClass("hidden");		
		}
		
		if($('input[name="directorOrTenPercentShareholder"]:checked').val() == '1')
			$("#directorOrTenPercentShareholderCompany").removeClass("hidden");	
			
		if($('input[name="private_placement"]:checked').val() == '1')
			$("#private_placement").removeClass("hidden");	
		
		if($('input[name="previousPrivatePlacementExperience"]:checked').val() == '1')
			$("#previousExperienceSector").removeClass("hidden");		
		
		if($('input[name="finraAffiliated"]:checked').val() == '1')
			$("#finraAffiliated").removeClass("hidden");
	});
</script>
<?php $__env->stopSection(); ?>

<?php $__env->stopSection(); ?>