<div class="panel panel-default pjCcMain">
	<?php
	include_once dirname(__FILE__) . '/elements/header.php';
	
	$FORM = @$_SESSION[$controller->defaultForm];
	
	?>
	<div class="panel-body pjCcBody">
		<div class="row">
			<aside class="col-lg-3 col-md-3 col-sm-4 col-xs-12 pull-right pjCcAside">
				<div class="panel panel-default">
					<header class="panel-heading pjCcAsideHead">
						<p class="panel-title pjCcAsideTitle"><?php __('front_your_booking')?></p><!-- /.panel-title pjCcAsideTitle -->
					</header><!-- /.panel-heading pjCcAsideHead -->

					<div class="panel-body pjCcAsideBody">
						<?php
						include_once dirname(__FILE__) . '/elements/booking.php';
						?>
					</div><!-- /.panel-body pjCcAsideBody -->
				</div><!-- /.panel panel-default -->
			</aside><!-- /.col-lg-3 col-md-3 col-sm-4 col-xs-12 pull-right pjCcAside -->

			<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12 pull-left pjCcContent">
				<div class="pjCcForm pjCcFormAddress">
					<form id="pjCbsPreviewForm_<?php echo $_GET['index'];?>" name="pjCbsPreviewForm" class="form-horizontal" action="#" method="post" role="form">
						<input type="hidden" name="cbs_preview" value="1" />
						<header class="pjCcFormHead">
							<p class="pjCcFormTitle"><?php __('front_your_address');?></p><!-- /.pjCcFormTitle -->
						</header><!-- /.pjCcFormHead -->

						<div class="row pjCcFormBody">
							<?php
							if (in_array((int) $tpl['option_arr']['o_bf_include_address'], array(2,3)))
							{
								?>
								<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
									<div class="form-group">
										<label for=""><?php __('front_address'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_address']); ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_city'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_city'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_city']); ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_state'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_state'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_state']); ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_zip'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_zip'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_zip']); ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_country'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_country'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html($tpl['country_arr']['country_title']); ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_title'], array(2,3)))
							{
								$personal_titles = __('personal_titles', true);
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_title'); ?>:</label>
										<div class="text-muted"><?php echo $personal_titles[$FORM['c_title']]; ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_name'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_name'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_name']); ?></div>
								    </div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_email'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_email'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_email']); ?></div>
									</div>
								</div>
								<?php
							}
							if (in_array((int) $tpl['option_arr']['o_bf_include_phone'], array(2,3)))
							{
								?>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_phone'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['c_phone']); ?></div>
									</div>
								</div>
								<?php
							}
							?>
							
							<div class="col-lg-10 col-md-12 col-sm-12 col-xs-12">
								<div class="form-group">
									<div class="text-muted">
										<?php
										if(isset($FORM['home']) && ($FORM['home'] == 'someone'))
										{
											__('front_someone_is_home');
										} else{
											__('front_i_hide_the_key');
										}
										?>
									</div>
								</div>
							</div><!-- /.col-lg-10 col-md-12 col-sm-12 col-xs-12 -->
						</div><!-- /.row pjCcFormBody -->
						
						<?php
						if ($tpl['option_arr']['o_payment_disable'] == 'No')
						{
							$payment_methods = __('payment_methods', true);
							$cc_types = __('cc_types', true);
							?>
							<header class="pjCcFormHead">
								<p class="pjCcFormTitle"><?php __('front_payment_method');?></p><!-- /.pjCcFormTitle -->
							</header><!-- /.pjCcFormHead -->
							
							<div class="row pjCcFormBody">
								<div class="col-lg-5 col-md-5 col-sm-8 col-xs-8">
									<div class="form-group">
										<label for=""><?php __('front_payment_method'); ?>:</label>
										<div class="text-muted"><?php echo $payment_methods[@$FORM['payment_method']]; ?></div>
									</div>
								</div>
							</div><!-- /.row pjCcFormBody -->
							<div class="row pjCcFormBody pjCbsBankWrap" style="display: <?php echo @$FORM['payment_method'] != 'bank' ? 'none' : NULL; ?>">
								<div class="col-lg-5 col-md-5 col-sm-8 col-xs-8">
									<label class="text-muted"><?php echo nl2br(pjSanitize::html($tpl['option_arr']['o_bank_account'])); ?></label>
								</div>
							</div><!-- /.row pjCcFormBody -->
							<div class="row pjCcFormBody pjCbsCcWrap" style="display: <?php echo @$FORM['payment_method'] != 'creditcard' ? 'none' : NULL; ?>">
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_cc_type'); ?>:</label>
										<div class="text-muted"><?php echo $cc_types[@$FORM['cc_type']]; ?></div>
									</div>
								</div>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_cc_num'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['cc_num']); ?></div>
									</div>
								</div>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_cc_code'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html(@$FORM['cc_code']); ?></div>
									</div>
								</div>
								<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
									<div class="form-group">
										<label for=""><?php __('front_cc_exp'); ?>:</label>
										<div class="text-muted"><?php echo pjSanitize::html($FORM['cc_exp_month']); ?> - <?php echo pjSanitize::html($FORM['cc_exp_year']); ?></div>
									</div>
								</div>
							</div>
							<?php
						}
						?>
						<footer class="clearfix pjCcFormFoot">
							<a href="#" data-load="loadCheckout" class="btn btn-info pull-left pjCcBtnBack pjCbsMenuItem"><?php __('front_btn_back');?></a>

							<button type="submit" class="btn btn-primary pull-right"><?php __('front_btn_confirm');?></button>
						</footer><!-- /.clearfix pjCcFormFoot -->
					</form>
					
				</div><!-- /.pjCcForm pjCcFormAddress -->
			</div><!-- /.col-lg-9 col-md-9 col-sm-8 col-xs-12 pull-left pjCcContent -->
		</div><!-- /.row -->
	</div><!-- /.panel-body pjCcBody -->
</div><!-- /.panel panel-default pjCcMain -->