<?php
$time_format = 'HH:mm';
if((strpos($tpl['option_arr']['o_time_format'], 'a') > -1))
{
    $time_format = 'hh:mm a';
}
if((strpos($tpl['option_arr']['o_time_format'], 'A') > -1))
{
    $time_format = 'hh:mm A';
}
$months = __('months', true);
ksort($months);
$short_days = __('short_days', true);
$bs = __('booking_statuses', true); 
?>
<div id="dateTimePickerOptions" style="display:none;" data-wstart="<?php echo (int) $tpl['option_arr']['o_week_start']; ?>" data-dateformat="<?php echo pjUtil::toMomemtJS($tpl['option_arr']['o_date_format']); ?>" data-format="<?php echo pjUtil::toMomemtJS($tpl['option_arr']['o_date_format']); ?> <?php echo $time_format;?>" data-months="<?php echo implode("_", $months);?>" data-days="<?php echo implode("_", $short_days);?>"></div>
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-sm-12">
		<div class="row">
			<div class="col-lg-9 col-md-8 col-sm-6">
				<h2><?php __('infoAddBookingTitle');?></h2>
			</div>
		</div><!-- /.row -->

		<p class="m-b-none"><i class="fa fa-info-circle"></i><?php __('infoAddBookingDesc');?></p>
	</div><!-- /.col-md-12 -->
</div>

<div class="wrapper wrapper-content animated fadeInRight">
	<div class="tabs-container tabs-reservations m-b-lg">
		<form action="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminBookings&amp;action=pjActionCreate" method="post" id="frmCreate">
        	<input type="hidden" name="booking_create" value="1" />
        	<input type="hidden" name="csrf_token" value="<?php echo pjAppController::getCsrfToken(); ?>" />
			<ul class="nav nav-tabs" role="tablist">
        		<li role="presentation" class="active"><a class="nav-tab-booking-details" href="#tab-booking-details" aria-controls="booking-details" role="tab" data-toggle="tab"><?php __('tabBookingDetails');?></a></li>
        		<li role="presentation"><a class="nav-tab-client-details" href="#tab-client-details" aria-controls="client-details" role="tab" data-toggle="tab"><?php __('tabClientDetails');?></a></li>
        	</ul>
			<div class="tab-content">
				<div role="tabpanel" class="tab-pane active" id="tab-booking-details">
					<div class="panel-body">					
						<div class="row">
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblStatus');?></label>
	
									<select name="status" id="status" class="form-control required" data-msg-required="<?php __('lblFieldRequired');?>">
										<option value="">-- <?php __('lblChoose'); ?>--</option>
										<?php
										foreach (__('booking_statuses', true, false) as $k => $v)
										{
											?><option value="<?php echo $k; ?>"><?php echo stripslashes($v); ?></option><?php
										}
										?>
									</select>
								</div>
							</div><!-- /.col-md-3 -->
							<?php
							$from = date($tpl['option_arr']['o_date_format'] . ' ' . $tpl['option_arr']['o_time_format'], time());
							$to = date($tpl['option_arr']['o_date_format'] . ' ' . $tpl['option_arr']['o_time_format'], time() + 60*60);
							?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblFrom'); ?></label>
	
									<div class="input-group">
										<input type="text" name="from" id="from" value="<?php echo $from;?>" class="form-control datetimepick required" data-wt="open" readonly="readonly" data-msg-required="<?php __('lblFieldRequired');?>">
	
										<span class="input-group-addon"><i class="fa fa-calendar"></i></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblTo'); ?></label>
	
									<div class="input-group">
										<input type="text" name="to" id="to" value="<?php echo $to;?>" class="form-control datetimepick required" data-wt="open" readonly="readonly" data-msg-required="<?php __('lblFieldRequired');?>">
	
										<span class="input-group-addon"><i class="fa fa-calendar"></i></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblRentalDays'); ?></label>
	
									<input type="text" class="form-control" readonly value="" id="cpRentalDays">
								</div>
							</div><!-- /.col-md-3 -->
						</div><!-- /.row -->
					   
						<div class="hr-line-dashed"></div>
	
						<div class="row">
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblSpace'); ?></label>
									<span id="cpSpaceContainer">
										<select id="space_id" name="space_id" class="form-control required" data-msg-required="<?php __('lblFieldRequired');?>">
											<option value="">-- <?php __('lblChoose'); ?>--</option>
										</select>
									</span>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-sm-12">
								<div class="hr-line-dashed"></div>
	
								<div class="row">
									<div class="col-sm-6">
										<div class="form-group">
											<div class="table-responsive table-responsive-secondary">
												<table class="table table-striped table-hover" id="tblExtras">
													<thead>
														<tr>
															<th><?php __('lblExtra'); ?></th>
															<th><?php __('lblPrice'); ?></th>
															<th><?php __('lblQty'); ?></th>
															<th>&nbsp;</th>
														</tr>
													</thead>
													<tbody>
														
													</tbody>
												</table>
											</div>
										</div>
									</div><!-- /.col-sm-6 -->
	
									<div class="col-sm-6">
										<div class="m-t-lg">
											<a href="javascript:void(0);" class="btn btn-primary m-t-xs cpAddExtra"><i class="fa fa-plus"></i> <?php __('btnAddExtra', false, true); ?></a>
										</div>
									</div><!-- /.col-sm-6 -->
								</div><!-- /.row -->
							</div><!-- /.col-sm-12 -->
						</div><!-- /.row -->
	
						<div class="hr-line-dashed"></div>
	
						<div class="row">
							<div class="col-md-6">
								<label class="control-label"><?php __('lblDiscountCode'); ?></label>
	
								<div class="row">
									<div class="col-sm-6">
										<div class="form-group discountCodeContainer">
											<input type="text" id="discount_code" name="discount_code" data-type="" data-discount="" class="form-control">
											<span class="help-block"></span>
										</div>
									</div>
	
									<div class="col-sm-6">
										<input type="button" value="<?php __('btnApply', false, true); ?>" class="btn btn-primary cpBtnCode cpApplyCode" style="display: block"/>
										<input type="button" value="<?php __('btnRemove', false, true); ?>" class="btn btn-danger cpBtnCode cpRemoveCode" style="display: none"/>
									</div>
								</div>
							</div><!-- /.col-md-3 -->
						</div>
	
						<div class="hr-line-dashed"></div>
	
						<div class="row">
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblRentalPrice'); ?></label>
	
									<div class="input-group">
										<input type="text" id="rental_price" name="rental_price" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblExtraPrice'); ?></label>
	
									<div class="input-group">
										<input type="text" id="extra_price" name="extra_price" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
							
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblDiscount'); ?></label>
	
									<div class="input-group">
										<input type="text" id="discount" name="discount" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblSubTotal'); ?></label>
	
									<div class="input-group">
										<input type="text" id="sub_total" name="sub_total" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblTax'); ?></label>
	
									<div class="input-group">
										<input type="text" id="tax" name="tax" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblTotal'); ?></label>
	
									<div class="input-group">
										<input type="text" id="total" name="total" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblDeposit'); ?></label>
	
									<div class="input-group">
										<input type="text" id="deposit" name="deposit" readonly="readonly" class="form-control">
	
										<span class="input-group-addon"><?php echo pjCurrency::getCurrencySign($tpl['option_arr']['o_currency'], false);?></span> 
									</div>
								</div>
							</div><!-- /.col-md-3 -->
	
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblPaymentMethod');?></label>
									<?php
									$online_arr = array();
									$offline_arr = array();
									foreach (__('payment_methods', true, false) as $k => $v)
									{
										if($k == 'creditcard') continue;
										if(in_array($k, array('cash', 'bank')))
										{
											$offline_arr[$k] = $v;
										}else{
											$online_arr[$k] = $v;
										}
									}
									?>
									<select name="payment_method" id="payment_method" class="form-control <?php echo $tpl['option_arr']['o_payment_disable'] == 'Yes' ? null : 'required';?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
										<option value="">-- <?php __('lblChoose'); ?>--</option>
										<optgroup label="<?php __('script_online_payment_gateway', false, true); ?>">
										<?php
										foreach($online_arr as $k => $v)
										{
											?><option value="<?php echo $k;?>"><?php echo $v;?></option><?php
										}
										?>
										</optgroup>
										<optgroup label="<?php __('script_offline_payment', false, true); ?>">
										<?php
										foreach($offline_arr as $k => $v)
										{
											?><option value="<?php echo $k;?>"><?php echo $v;?></option><?php
										}
										?>
										</optgroup>
									</select>
								</div>
							</div><!-- /.col-md-3 -->
						</div><!-- /.row -->
					   
						<div class="hr-line-dashed"></div>
	
						<div class="clearfix">
							<button type="submit" class="ladda-button btn btn-primary btn-lg btn-phpjabbers-loader pull-left" data-style="zoom-in" style="margin-right: 15px;">
								<span class="ladda-label"><?php __('btnSave'); ?></span>
								<?php include $controller->getConstant('pjBase', 'PLUGIN_VIEWS_PATH') . 'pjLayouts/elements/button-animation.php'; ?>
							</button>
							<button type="button" class="btn btn-white btn-lg pull-right" onclick="window.location.href='<?php echo PJ_INSTALL_URL; ?>index.php?controller=pjAdminBookings&action=pjActionIndex';"><?php __('btnCancel'); ?></button>
						</div><!-- /.clearfix -->
					</div>
				</div>
	
				<div role="tabpanel" class="tab-pane" id="tab-client-details">
					<div class="panel-body">
						<div class="m-b-md">
							<h2 class="no-margins"><?php __('lblPersonalDetails');?></h2>
						</div>
						
						<?php 
						ob_start();
						if (in_array((int) $tpl['option_arr']['o_bf_include_title'], array(2,3))) { ?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingTitle'); ?></label>
	
									<select name="c_title" id="c_title" class="form-control<?php echo $tpl['option_arr']['o_bf_include_title'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
										<option value="">-- <?php __('lblChoose'); ?>--</option>
										<?php
										$title_arr = pjUtil::getTitles();
										$name_titles = __('personal_titles', true, false);
										foreach ($title_arr as $v)
										{
											?><option value="<?php echo $v; ?>"><?php echo $name_titles[$v]; ?></option><?php
										}
										?>
									</select>
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_name'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingName'); ?></label>
	
									<input type="text" name="c_name" id="c_name" class="form-control<?php echo $tpl['option_arr']['o_bf_include_name'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_email'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingEmail'); ?></label>
	
									<input type="text" name="c_email" id="c_email" class="form-control email <?php echo $tpl['option_arr']['o_bf_include_email'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>" data-msg-email="<?php __('lblEmailInvalid');?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_phone'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingPhone'); ?></label>
	
									<input type="text" name="c_phone" id="c_phone" class="form-control <?php echo $tpl['option_arr']['o_bf_include_phone'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						$ob_fields = ob_get_contents();
						ob_end_clean();
						?>
						<div class="row">
							<?php echo $ob_fields;?>
						</div><!-- /.row -->
						<div class="hr-line-dashed"></div>
						<?php
						ob_start(); 
						if (in_array((int) $tpl['option_arr']['o_bf_include_company'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingCompany'); ?></label>
	
									<input type="text" name="c_company" id="c_company" class="form-control <?php echo $tpl['option_arr']['o_bf_include_company'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_address'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingAddress'); ?></label>
	
									<input type="text" name="c_address" id="c_address" class="form-control <?php echo $tpl['option_arr']['o_bf_include_address'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_city'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingCity'); ?></label>
	
									<input type="text" name="c_city" id="c_city" class="form-control <?php echo $tpl['option_arr']['o_bf_include_city'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						}
						if (in_array((int) $tpl['option_arr']['o_bf_include_state'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingState'); ?></label>
	
									<input type="text" name="c_state" id="c_state" class="form-control <?php echo $tpl['option_arr']['o_bf_include_state'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						$ob_fields = ob_get_contents();
						ob_end_clean();
						?>
						<div class="row">
							<?php echo $ob_fields;?>
						</div><!-- /.row -->
						<?php
						ob_start();
						if (in_array((int) $tpl['option_arr']['o_bf_include_zip'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingZip'); ?></label>
	
									<input type="text" name="c_zip" id="c_zip" class="form-control <?php echo $tpl['option_arr']['o_bf_include_zip'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_country'], array(2,3))) {
						?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingCountry'); ?></label>
	
									<select name="c_country" id="c_country" class="select-country form-control <?php echo $tpl['option_arr']['o_bf_include_country'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
										<option value="">-- <?php __('lblChoose'); ?>--</option>
										<?php
										foreach ($tpl['country_arr'] as $v)
										{
											?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php
										}
										?>
									</select>
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						if (in_array((int) $tpl['option_arr']['o_bf_include_notes'], array(2,3))) {
						?>
							<div class="col-lg-6 col-md-8 col-sm-12">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingNotes'); ?></label>
	
									<textarea name="c_notes" id="c_notes" class="form-control <?php echo $tpl['option_arr']['o_bf_include_notes'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>"></textarea>
								</div>
							</div><!-- /.col-md-3 -->
						<?php 
						} 
						$ob_fields = ob_get_contents();
						ob_end_clean();
						?>
						<div class="row">
							<?php echo $ob_fields;?>
						</div><!-- /.row -->
						<div class="hr-line-dashed"></div>
						
						<?php ob_start();?>
						<div class="row">
							<?php if (in_array((int) $tpl['option_arr']['o_bf_include_regno'], array(2,3))) { ?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingRegNo'); ?></label>
	
									<input type="text" name="c_regno" id="c_regno" class="form-control <?php echo $tpl['option_arr']['o_bf_include_regno'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
							<?php } ?>
							<?php if (in_array((int) $tpl['option_arr']['o_bf_include_make'], array(2,3))) { ?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingMake'); ?></label>
	
									<input type="text" name="c_make" id="c_make" class="form-control <?php echo $tpl['option_arr']['o_bf_include_make'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
							<?php } ?>
							<?php if (in_array((int) $tpl['option_arr']['o_bf_include_model'], array(2,3))) { ?>
							<div class="col-lg-3 col-md-4 col-sm-6">
								<div class="form-group">
									<label class="control-label"><?php __('lblBookingModel'); ?></label>
	
									<input type="text" name="c_model" id="c_model" class="form-control <?php echo $tpl['option_arr']['o_bf_include_model'] == 3 ? ' required' : NULL; ?>" data-msg-required="<?php __('lblFieldRequired', false, true);?>">
								</div>
							</div><!-- /.col-md-3 -->
							<?php } ?>
						</div><!-- /.row -->
						<?php 
						$ob_vehicle_fields = ob_get_contents();
						ob_end_clean();
						if (!empty($ob_vehicle_fields)) { 
						?>
							<div class="m-b-md">
								<h2 class="no-margins"><?php __('lblVehicleDetails');?></h2>
							</div>
							<?php echo $ob_vehicle_fields;?>
						<?php } ?>
						<div class="hr-line-dashed"></div>
						
						<div class="clearfix">
							<button type="submit" class="ladda-button btn btn-primary btn-lg btn-phpjabbers-loader pull-left" data-style="zoom-in" style="margin-right: 15px;">
								<span class="ladda-label"><?php __('btnSave'); ?></span>
								<?php include $controller->getConstant('pjBase', 'PLUGIN_VIEWS_PATH') . 'pjLayouts/elements/button-animation.php'; ?>
							</button>
							<button type="button" class="btn btn-white btn-lg pull-right" onclick="window.location.href='<?php echo PJ_INSTALL_URL; ?>index.php?controller=pjAdminBookings&action=pjActionIndex';"><?php __('btnCancel'); ?></button>
						</div><!-- /.clearfix -->
					</div>
				</div>
			</div>
		</form>
	</div>
	
</div><!-- /.wrapper wrapper-content -->
<table id="tblExtrasClone" style="display: none">
	<tbody>
		<tr>
			<td>
				<select name="extra_id[{INDEX}]" data-index="{INDEX}" class="form-control cpExtraSelector" data-msg-required="<?php __('lblFieldRequired');?>">
					<option value="">-- <?php __('lblChoose'); ?>--</option>
				</select>
				<input type="hidden" name="price[{INDEX}]"/>
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>
				<div class="m-t-xs text-right">
					<a href="javascript:void(0);" class="btn btn-danger btn-outline btn-sm btn-delete cpRemoveExtra"><i class="fa fa-trash"></i></a>
				</div>
			</td>
		</tr>
	</tbody>
</table>
<script type="text/javascript">
var myLabel = myLabel || {};
myLabel.tax_percent = <?php echo (float) $tpl['option_arr']['o_tax_payment'];?>;
myLabel.deposit_percent = <?php echo (float) $tpl['option_arr']['o_deposit_payment'];?>;
myLabel.existing_uuid = <?php x__encode('existing_uuid');?>;
myLabel.invalid_from_dt = <?php x__encode('booking_invalid_datetime_from');?>;
myLabel.invalid_to_dt = <?php x__encode('booking_invalid_datetime_to');?>;
myLabel.invalid_discount_code = <?php x__encode('lblDiscountCodeInvalid');?>;
</script>