<?php $__env->startSection('header'); ?> 	
	<link rel="stylesheet" href="<?php echo e(URL::asset('voyo/inc/rs-plugin/css/settings.css')); ?>" media="screen">	
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

	<!-- banner block -->
	<?php echo $__env->make('site.banner', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

	<!-- discover block -->
	<?php echo $__env->make('site.discover', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

	<!-- flash bid -->
	<?php echo $__env->make('site.flash', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	<!-- reward block -->
	<?php /* <?php echo $__env->make('site.feature', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> */ ?>

	<!-- contact form -->	
	<div id="up-contact">
		<section class="contact-section section-3 m0 large-padding custom-bg parallax" data-bg="<?php echo e(URL::asset('voyo/images/s-201.jpg')); ?>">
			<div class="bg-layer"></div>
			<div class="container">
				<div class="row">
					<div class="col-sm-12 col-md-12">
						<?php if(Session::has('msg')): ?>
							<div class="alert alert-success" role="alert">
								<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
								<span class="sr-only">Success:</span>
								<?php echo e(Session::get('msg')); ?>

							</div>
						<?php endif; ?>
					</div>
					<div class="col-sm-12 col-md-5 sm-box">
						
						<div id="contact-info">
							<h2 class="section-title st2 text-left mt10 mb25">Get in Touch with UP</h2>
							<p class="more-info"></p>
							<address class="mb50">
								<p id="address"><i class="fa fa-home"></i> <span>190 Clemenceau Avenue #06-01 Singapore 239924</span></p>
								<p><i class="fa fa-clock-o"></i> <span id="contact-hours">Office: Mon-Fri 9am - 6pm</span></p>
								<p id="tech"><i class="fa fa-cogs"></i> <span id="tech-hour">Technical Support: Mon-Fri 9am-5pm</span></p>
								<p><i class="fa fa-envelope"></i> <span id="contact-email"> <a href="mailto:support@united-points.com">support@united-points.com</a></span></p>
							</address>
						</div>
						<div id="subscribe-info">
							<h2 class="section-title st2 text-left mt10 mb25">Subscribe to WhatsUP</h2>
							<p class="contact-p">
								Don't miss out on UP's latest deals and specials offers. Sign up for our eNewsletter today!
							</p>
						</div>

						<ul class="nav nav-tabs">
								<li class="<?php echo e(Request::get('open')=='contact' ? 'active' : ''); ?>">
									<a class="btn btn-default" href="#tab-contact" data-toggle="tab">CONTACT UP</a>
								</li>
								<li class="<?php echo e(Request::get('open')=='subscribe' ? 'active' : ''); ?>">
									<a class="btn btn-new-o" href="#tab-subscribe" data-toggle="tab">SUBSCRIBE</a>
								</li>
						</ul>
					</div>
					<div class="col-sm-12 col-md-6 col-md-offset-1">
						<div class="tab-content">
							<div class="tab-pane fade <?php echo e(Request::get('open')!='subscribe' ? 'active in': ''); ?> " 
								id="tab-contact">
								<p class="contact-p <?php echo e(Request::get('open')=='contact' ? '': 'up_hide'); ?>" id="select-contact">
									I am a 
									<span><input id="guest_member"type="radio" name="select-contact" value="guest_member"><label for="guest_member" <?php echo e(Request::get('selected')=='guest'?'checked': ''); ?>>Guest or Member</label></span>
									
									<span><input id="merchant"type="radio" name="select-contact" value="merchant"><label for="merchant" <?php echo e(Request::get('selected')=='merchant'?'checked': ''); ?>>Partner</label></span>

									<span><input id="media"type="radio" name="select-contact" value="media" <?php echo e(Request::get('selected')=='media'?'checked': ''); ?>><label for="media">Media</label></span>
								</p>
								<div id="tab-contact" class="<?php echo e(Request::has('open') ? 'up_hide' : ''); ?>">
									<div id="contact-form-map" style="width:100%;height:420px!important;"></div>
								</div>	
								<!-- Guest or Member Form -->
								<div id="contact-form-guest-member" class="<?php echo e(Request::get('open')=='contact' ? '': 'up_hide'); ?>">
									<?php echo Form::open(['url' => 'contact/guest', 'class' => 'working-contact-form form', 'id' => 'guest-contact-form']); ?> 

										<input type="hidden" name="is_home" value="<?= ( Request::segment(1) == null ) ? 'true' : 'false' ?>">
										<!-- Success and error Alerts -->
										<div class="alert alert-success br0" id="contact-success" style="display: none">
											<span class="glyphicon glyphicon-ok "></span> &nbsp;
											<strong>Success!</strong> Thank you for your message.
										</div>
										<div class="alert alert-danger br0" id="contact-error" style="display: none">
											<span class="glyphicon glyphicon-remove "></span> &nbsp;
											<strong>Error!</strong> Oops, something went wrong.
										</div>
										<!-- Form Fields -->
										<div>															
											<div class="form-group">
												<div class="form-icon icon-user">
													<?php echo Form::text('name', null, ['class' => 'form-control', 'id' => 'name', 'placeholder' => 'Name']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-email">
													<?php echo Form::email('email', null, ['class' => 'form-control', 'id' => 'email', 'placeholder' => 'Email']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-phone">
													<?php echo Form::text('contact_no', null, ['class' => 'form-control', 'id' => 'contact_no', 'placeholder' => 'Contact No.']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-message">
													<?php echo Form::textarea('message', null, ['class' => 'form-control', 'id' => 'message', 'placeholder' => 'Message']); ?>

												</div>
											</div>
											<div class="form-group">
												<div id="RecaptchaField1"></div>							
											</div>										
											<?php echo Form::submit('Submit'); ?>

										</div> <!-- END Form Fields -->
									<?php echo Form::close(); ?>

								</div>

								<!-- Company, Merchant, Media Form -->
								<div id="contact-form-company-merchant-media">
									<?php echo Form::open(['url' => 'contact/other', 'class' => 'working-contact-form form', 'id' => 'other-contact-form']); ?>

										<input type="hidden" name="other" value="" id="other">
										<input type="hidden" name="is_home" value="<?= ( Request::segment(1) == null ) ? 'true' : 'false' ?>">
										<!-- Success and error Alerts -->
										<div class="alert alert-success hidden br0" id="contact-success">
											<span class="glyphicon glyphicon-ok "></span> &nbsp;
											<strong>Success!</strong> Thank you for your message.
										</div>
										<div class="alert alert-danger hidden br0" id="contact-error">
											<span class="glyphicon glyphicon-remove "></span> &nbsp;
											<strong>Error!</strong> Oops, something went wrong.
										</div>
										<!-- Form Fields -->
										<div>								
											<div class="form-group">
												<div class="form-icon icon-user">
													<?php echo Form::text('name', null, ['class' => 'form-control', 'id' => 'name', 'placeholder' => 'Name']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-company">
													<?php echo Form::text('company', null, ['class' => 'form-control', 'id' => 'company', 'placeholder' => 'Company']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-designation">
													<?php echo Form::text('designation', null, ['class' => 'form-control', 'id' => 'designation', 'placeholder' => 'Designation']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-email">
													<?php echo Form::email('email', null, ['class' => 'form-control', 'id' => 'email', 'placeholder' => 'Email']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-phone">
													<?php echo Form::text('contact_no', null, ['class' => 'form-control', 'id' => 'contact_no', 'placeholder' => 'Contact No.']); ?>

												</div>
											</div>
											<div class="form-group">
												<div class="form-icon icon-message">
													<?php echo Form::textarea('message', null, ['class' => 'form-control', 'id' => 'message', 'placeholder' => 'Message']); ?>

												</div>
											</div>
											<div class="form-group">
												<div id="RecaptchaField2"></div>							
											</div>										
											<?php echo Form::submit('Submit'); ?>

										</div> <!-- END Form Fields -->
									<?php echo Form::close();; ?>

								</div>

							</div>            
							<div class="tab-pane fade <?php echo e(Request::get('open')=='subscribe' ? 'active in': 'no'); ?>" id="tab-subscribe">
									<!-- Subscribe form -->
										<!--
										<div class="text-center">
											<a href="<?php echo e(URL::to('demo-login')); ?>" class="btn voyo-btn-2 mr20" style="width: 120px;">LOG IN</a>
											<a href="<?php echo e(URL::to('demo-register')); ?>" class="btn voyo-btn-2 mr20" style="width: 120px;">REGISTER</a>
										</div>
										-->

									<!-- The old subscript form with email box and checkboxex -->
									
									<?php echo Form::open(['url' => 'contact/subscription', 'class' => 'form form-subscribe', 'id' => 'subscribe-form']); ?>

										<div class="row">
											<div class="col-sm-9">
												<div class="form-group">
													<input name="email" id="email" type="email" class="form-control" placeholder="Email"/>
												</div>
											</div>
											<div class="col-sm-3">
												<input type="submit" value="Subscribe"/>
											</div>
											<div class="col-sm-12">
												<div class="form-group" id="RecaptchaField3">							
												</div>																
											</div>
											<div class="col-sm-12">
												<h3 class="box-title mt40">What are your interests?</h3>
											</div>
											<div class="col-sm-12">
												
												<label for="interest_in[]" class="error up_hide up-error">
													<span class="form-message-error"></span>
												</label>

												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="Fashion & Accessories"> Fashion &amp; Accessories
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="Home & Living"> Home &amp; Living
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="IT Gadgets & Electronics"> IT Gadgets &amp; Electronics
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="Food & Beverages"> Food &amp; Beverages
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="Hotel, Travel Deals & Packages"> Hotel, Travel Deals &amp; Packages
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="Entertainment (Movies, Concerts, Clubs)"> Entertainment (Movies, Concerts, Clubs)
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="interest_in[]" type="checkbox" value="Events"> Events
													</label>
												</div>
											</div>
											
											<div class="col-sm-12">
												<h3 class="box-title mt40">How did you know about UP?</h3>
											</div>
											
											<div class="col-sm-12">

												<label for="know[]" class="error up_hide up-error" style="display: inline-block;">
													<span class="form-message-error"></span>
												</label>

												<div class="checkbox">
													<label>
														<input name="know[]" type="checkbox" value="Search Engines (Google, Yahoo, etc)"> Search Engines (Google, Yahoo, etc)
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="know[]" type="checkbox" value="Social Media Platforms (Facebook, Twitter, etc)"> Social Media Platforms (Facebook, Twitter, etc)
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="know[]" type="checkbox" value="Word of Mouth (Family, Friends, Colleagues, etc)"> Word of Mouth (Family, Friends, Colleagues, etc)
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="know[]" type="checkbox" value="Merchants"> Merchants
													</label>
												</div>
												<div class="checkbox">
													<label>
														<input name="know[]" type="checkbox" value="Events/Roadshows"> Events/Roadshows
													</label>
												</div>
											</div>
									<?php echo Form::close(); ?>

									
									 
								</div>
							</div>
						</div>
					</div>
				</div>
			</div> <!-- END Container -->
		</section>
	</div>
	
	<!-- footer links -->
	<?php echo $__env->make('site.bottom-menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer'); ?>
	<script src="<?php echo e(URL::asset('site/js/maps.js')); ?>"></script>
	<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBoLpEKRzQP3utPIJB-ZLT_fHBpYEG7mqc&callback=initMap" async defer></script>
	<script src="<?php echo e(URL::asset('site/js/contact.js')); ?>"></script>
	<script>
		$(document).ready(function () {			
			<?php if(Request::has('subscribe')): ?>
				$("a[href=#tab-subscribe]").trigger('click');
			<?php endif; ?>

			<?php if(Request::has('open')): ?>
				$("a[href=#tab-contact]").trigger('click');
			<?php endif; ?>
		    <?php if(Session::has('first_login')): ?>
				$('#reward_subscribe_modal').modal('show');
			<?php endif; ?>
			<?php if(Session::has('subscribe_success')): ?>
				swal({   
					title: "Success!",
					text: "Thank you for your subscription!",
					type: "success",
					confirmButtonText: false
				});
			<?php endif; ?>
			<?php if($errors->first('recaptcha')): ?>
				swal({   
					title: "Error Subscription!",
					text: "Please Check the Recaptcha Box!",
					type: "error",
					confirmButtonText: false
				});
			<?php endif; ?>
			
			<?php if($errors->first('email')): ?>
				swal({   
					title: "You have already subscribed!",
					type: "info",
					confirmButtonText: false
				});
			<?php endif; ?>			
		});
	</script>
	<script src="https://www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit" async defer></script>

	<script type="text/javascript">
	    var CaptchaCallback = function() {
	        grecaptcha.render('RecaptchaField1', {'sitekey' : '<?php echo e(env('RECAP_SITEKEY')); ?>'});
	        grecaptcha.render('RecaptchaField2', {'sitekey' : '<?php echo e(env('RECAP_SITEKEY')); ?>'});
	        grecaptcha.render('RecaptchaField3', {'sitekey' : '<?php echo e(env('RECAP_SITEKEY')); ?>'});
	    };

	    jssor_1_slider_init();
	</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master-voyo', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>