<?php $__env->startSection('content'); ?> 	
	
    <?php echo HTML::style('css/signature_codepen.css'); ?>	
    
    <?php $__env->startSection('scripts'); ?>
    <?php echo HTML::script('js/jquery.mousewheel.js'); ?>
    <?php echo HTML::script('js/jquery.jscrollpane.min.js'); ?>
    <?php echo HTML::script('js/printThis.js'); ?>

    <script type="text/javascript">
    	$(function() {
     		$('.scroll-pane').jScrollPane();
			
			$( "#print_subscription_agreement" ).click(function() {
				$("#pane").printThis();	
			});
    	});
		
		(function() {
			jQuery(function($) {
				return $('#sigbox').css('transform', 'scale(1)');
		  	});
		}).call(this);
    </script>
	<?php $__env->stopSection(); ?>    
    
    <div class="row margin-top-55 signature">
    	<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">
					<div class="col-md-12">
						<h1>Account Certification</h1>
						<h5 class="no-bold">Please review the information below carefully and check the appropriate boxes to agree to certifications and Terms and Conditions of Advisory Agreement. Once this is completed, select Submit to open the account.</h5>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12">
						<h1>Primary Account Owner Information</h1>
						<div class="row">
							<div class="col-xs-12">
								<div class="row bottom-margin">
									<div class="col-xs-3"><b>Name:</b></div>
									<div class="col-xs-9"><?php echo $member->firstName.' '.$member->lastName; ?></div>
								</div>
								<div class="row bottom-margin">
									<div class="col-xs-3"><b>Address:</b></div>
                                    <?php if(!empty($member->primaryAddress->line2)): ?>
										<div class="col-xs-9"><?php echo $member->primaryAddress->line1.', '.$member->primaryAddress->line2.', '.$member->primaryAddress->city.' '.$member->primaryAddress->state.', '.$member->primaryAddress->zipcode; ?></div>
                                   	<?php else: ?>
                                    	<div class="col-xs-9"><?php echo $member->primaryAddress->line1.', '.$member->primaryAddress->city.' '.$member->primaryAddress->state.', '.$member->primaryAddress->zipcode; ?></div>	
                                    <?php endif; ?>
								</div>
								<div class="row bottom-margin">
									<div class="col-xs-3"><b>Email:</b></div>
									<div class="col-xs-9"><?php echo $member->email1; ?></div>
								</div>
								<div class="row bottom-margin">
									<div class="col-xs-3"><b>Tax ID:</b></div>
									<div class="col-xs-9"><?php echo $member->tid; ?></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			
				<div class="row">
					<div class="col-md-12">
						<hr/>
						<h1><?php echo $agreement->title; ?></h1>
						<div class="row">
							<div class="col-xs-12">
                                <div class="scrollBox">
                                    <div id="pane" class="scroll-pane">
                                        <?php echo $agreement->content; ?>
                                    </div>
                                </div><!-- /scroll-box -->
                                <?php if(!empty($offering->offering_id)): ?>
                                	<p class="inner_nav"><a href="<?php echo URL::to('offerings/'.$offering->offering_id.'/signature?action=download'); ?>">DOWNLOAD PDF</a> | <a href="javascript:void(0)" id="print_subscription_agreement">PRINT</a> | <a href="<?php echo URL::to('offerings/'.$offering->offering_id.'/signature?action=email'); ?>">EMAIL</a></p>
                                <?php else: ?>
                                	<p class="inner_nav"><a href="<?php echo URL::to('account-setup/signature?action=download'); ?>">DOWNLOAD PDF</a> | <a href="javascript:void(0)" id="print_subscription_agreement">PRINT</a> | <a href="<?php echo URL::to('account-setup/signature?action=email'); ?>">EMAIL</a></p>
                                <?php endif; ?>
							</div>
						</div>
					</div>
                    <?php echo Form::open(array('class' => 'sigPad')); ?>
                        <div class="col-md-12 bottom-margin signature">
							<div class="flex">
                           		<div id="sigbox">
                                	<label for="signature">x</label>
                                	<input name="signature" value="<?php echo $signature; ?>" <?php echo empty($signature)?:'readonly="readonly"' ?> placeholder="Sign here"/>
                              	</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>
	</div>
<?php $__env->stopSection(); ?>