<?php $__env->startSection('content'); ?>

<div class="row margin-top-55">
    <div class="col-md-2">
		<?php echo $__env->make('offerings.registration.left_nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    </div>
    <div class="col-md-10">
        <div class="gray_container standart-15"> 
        	<?php echo Form::open(array('id' => 'folio_form')); ?>
            <div class="row">
            	<?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-xs-12 certification">
              		<div class="client">
                        <h4>Account Owner Information</h4>
               			<table  class=" table table-bordered">
                    		<thead>
                         		<tr>
                              		<th></th>
                                    <th<?php  echo empty($memberOwner)?' colspan="2"':'' ?>>Account Owner</th>
                                    <?php if(!empty($memberOwner)): ?>
                                    <th>Co-Account Owner</th>
                                    <?php endif; ?>
                             	</tr>
                          	</thead>
                          	<tbody>
                         		<tr>
                                	<td><p class="first-td">Name</p></td>
                                	<td<?php  echo empty($memberOwner)?' colspan="2"':'' ?>><?php echo $member->firstName.' '.$member->lastName; ?></td>
                                    <?php if(!empty($memberOwner)): ?>
                                	<td><?php echo $memberOwner->firstName.' '.$memberOwner->lastName; ?></td>
                              		<?php endif; ?>
                              	</tr>
                              	<tr>
                                	<td><p class="first-td">Social Security Number/<br>Tax ID</p></td>
                                	<td<?php  echo empty($memberOwner)?' colspan="2"':'' ?>><?php echo $member->tid; ?></td>
                                	<?php if(!empty($memberOwner)): ?>
                                    <td><?php echo $memberOwner->tid; ?></td>
                              		<?php endif; ?>
                                </tr>
                              	<tr>
                                	<td><p class="first-td">Folio Institutional <br>Account Number</p></td>
                                	<td colspan="2"><?php echo $account->accountNumber; ?></td>
                              	</tr>
                              	<tr>
                                	<td><p class="first-td">Name of Account</p></td>
                                	<td colspan="2"><?php echo $account->accountName; ?></td>
                              	</tr>
                     		</tbody>
               			</table>

                        <h4>Account Owner Signatures</h4>
                        <p>I certify, under penalty of perjury, that</p> 
                        <ol>
                            <li>The tax identification number on this application is the account owner's true tax identification number. The account owner is a U.S. person.</li>
                            <li>The account owner is not subject to backup withholding as a result of failure to report all interest and dividends,or the Internal Revenue Service (IRS) has notified the account owner that he/she is no longer subject to backup withholding. The IRS does not require consent to any provision of this document other than the certifications required to avoid backup withholding.</li>
                            <li>On behalf of the account owner, I have read, I understand, and I agree to the terms and the conditions set forth in the Customer Agreement and any applicable IRA Agreements, provided by your advisor and available on our website. The account owner agrees that Folio Institutional does not recommend any securities or investments.</li>
                            <li>The account owner agrees to resolve all disputes through arbitration and not through the courts as required on the last page of the Customer Agreement. </li>
                        </ol>

                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td style="width:200px"><p class="first-td">Account Owner/Custodian</p></td>
                                    <td>
                                        <div class="flex">
                                            <div class="sigbox">
                                                <label for="signature">x</label>
                                              	<input name="account_signature" value="<?php echo $account_signature ?>" <?php echo (!empty($account_signature))?'readonly="readonly"':''; ?> placeholder="Sign here"/>
                                            </div>
                                        </div>
                                    </td>
                                    <td style="width:150px">
                                        <div class="input-name">Date (mm/dd/yyyy)</div> 
                                        <?php echo (empty($account_signature_date) || $account_signature_date == '0000-00-00')?date("m/d/Y"):date("m/d/Y", strtotime($account_signature_date)); ?>
                                    </td>
                                </tr>
                                <?php if(!empty($memberOwner)): ?>
                                <tr>
                                    <td><p class="first-td">Additional Account Owner/<br>Co-Custodian</p></td>
                                    <td>
                                  		<div class="flex">
                                            <div class="sigbox">
                                                <label for="signature">x</label>
                                              	<input name="additional_account" value="<?php echo $additional_account_signature ?>" <?php echo (!empty($additional_account_signature))?'readonly="readonly"':''; ?> placeholder="Sign here"/>
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="input-name">Date (mm/dd/yyyy)</div> 
                                         <?php echo (empty($account_signature_date) || $account_signature_date == '0000-00-00')?date("m/d/Y"):date("m/d/Y", strtotime($account_signature_date)); ?>
                                    </td>
                                </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </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>
    </div>
</div>

<?php $__env->startSection('scripts'); ?>
<?php echo HTML::style('css/signature_codepen.css'); ?>
<script type="text/javascript">	
	(function() {
		jQuery(function($) {
			return $('.sigbox').css('transform', 'scale(1)');
		});
	}).call(this);
</script>
<?php $__env->stopSection(); ?>  

<?php $__env->stopSection(); ?>


