

<?php $__env->startSection('title', isset($page_contact) ? title_case($page_contact) : 'Contact us'); ?>

<?php 
	if(!empty($meta_tags)){
		foreach ($meta_tags as $key => $value) {
			$meta[$value->name] = $value->content;
		}
		$share_title = isset($meta['title']) ? $meta['title'] : '';
		$share_desc = isset($meta['description']) ? $meta['description'] : '';
	}else{
		$share_title = title_case($main_title)." | ".$masterName;
		$share_desc = $masterName." | ".$masterAddress." | ".str_replace(';',' ',$masterPhone)." | ".$masterEmail;
	}
	$share_url = Request::url();
	$share_img = asset($storage_url.'img/contact/'.$banner);
 ?>

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

<meta property="og:url" content="<?php echo e($share_url); ?>" />
<meta property="og:type" content="place" />
<meta property="og:title" content="<?php echo e($share_title); ?>" />
<meta property="og:description" content="<?php echo e($share_desc); ?>" />
<meta property="og:image" content="<?php echo e($share_img); ?>" />


<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="<?php echo e($share_url); ?>">
<meta name="twitter:title" content="<?php echo e($share_title); ?>">
<meta name="twitter:description" content="<?php echo e($share_desc); ?>">
<meta name="twitter:image:src" content="<?php echo e($share_img); ?>">


<meta itemprop="name" content="<?php echo e($share_title); ?>">
<meta itemprop="description" content="<?php echo e($share_desc); ?>">
<meta itemprop="image" content="<?php echo e($share_img); ?>">

<?php $__env->stopSection(); ?>

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

	<header class="container-fluid text-center">
		<div class="banner-section">
			<img alt="banner-header" src="<?php echo e($banner->media_url ? asset($storage_url.'img/contact/'.$banner->media_url) : ''); ?>" />
			<div class="banner-section-content">
				<h1 data-animate="true" data-effect="flipInX">
					<?php echo e(isset($page_contact) ? title_case($page_contact) : 'Contact us'); ?>

				</h1>
			</div>
		</div>
	</header>

	<!-- MAIN CONTENT -->
	<main id="mainContent" class="container-fluid">
		<section class="row section-content">
			<div class="col-xs-12 col-sm-6 content-box left contact-info">
				<div class="row">
					<div class="col-xs-12">
						<div class="row" data-animate="true" data-effect="fadeInLeft">
							<div class="col-xs-12 text-center">
								<?php if($logoSetting == 'yes'): ?>
									<?php 
										$url = !empty($masterLogo) ? asset($storage_url.'img/'.$masterLogo) : 'http://via.placeholder.com/200x200';
									 ?>
									<img class="img contact-logo" alt="logo" src="<?php echo e($url); ?>">
								<?php endif; ?>
							</div>
							<div class="col-xs-12 contact-detail">
								<?php if($nameSetting == 'yes'): ?>
									<h2><?php echo e($masterName); ?></h2>
								<?php endif; ?>
								<p><?php echo e($masterAddress); ?></p>
								<?php if($masterPhone != ""): ?>
		              <?php 
										$phone_numbers = explode(';',$masterPhone);
									 ?>
									<?php $__currentLoopData = $phone_numbers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<?php 
			                preg_match_all('!\d+!', $value, $x);
			                $call = implode($x[0]);
			               ?>
										<a href="tel:<?php echo e($call); ?>"><?php echo e($value); ?></a><br>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								<?php endif; ?>
							</div>
						</div>
					</div>
					<div class="col-xs-12" data-animate="true" data-effect="fadeInUp">

						<form id="contactForm" class="" method="post" action="<?php echo e(route('sendMessage')); ?>">

							<?php if(Session::has('message')): ?>
								<div class="alert <?php echo e(Session::get('alert-class')); ?> alert-dismissible" role="alert">
									<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
								 	<p><?php echo e(Session::get('message')); ?></p>
								</div>
							<?php endif; ?>

							<?php echo e(csrf_field()); ?>

							<div class="row form-group">
								<div class="col-xs-12 col-sm-3">
									<label class="control-label" for="name">
										<?php echo app('translator')->getFromJson('frontend.name'); ?>
									</label>
								</div>
								<div class="col-xs-12 col-sm-9<?php echo e($errors->has('name') ? ' has-error' : ''); ?>">
									<input class="form-control" type="text" name="name" value="<?php echo e(old('name')); ?>">
									<?php if($errors->has('name')): ?>
                      <span class="help-block">
                          <strong><?php echo e($errors->first('name')); ?></strong>
                      </span>
                  <?php endif; ?>
								</div>
							</div>
							<div class="row form-group">
								<div class="col-xs-12 col-sm-3">
									<label class="control-label" for="email">
										<?php echo app('translator')->getFromJson('frontend.email'); ?>
									</label>
								</div>
								<div class="col-xs-12 col-sm-9<?php echo e($errors->has('email') ? ' has-error' : ''); ?>">
									<input class="form-control" type="email" name="email" value="<?php echo e(old('email')); ?>">
									<?php if($errors->has('email')): ?>
                      <span class="help-block">
                          <strong><?php echo e($errors->first('email')); ?></strong>
                      </span>
                  <?php endif; ?>
								</div>
							</div>
							<div class="row form-group">
								<div class="col-xs-12 col-sm-9 col-sm-offset-3<?php echo e($errors->has('message') ? ' has-error' : ''); ?>">
									<textarea class="form-control" name="message" rows="8"></textarea>
									<?php if($errors->has('message')): ?>
                      <span class="help-block">
                          <strong><?php echo e($errors->first('message')); ?></strong>
                      </span>
                  <?php endif; ?>
								</div>
							</div>
							<div class="row">
								<div class="col-xs-12 col-sm-9 col-sm-offset-3 text-center">
									<button type="submit" class="btn btn-default">
										<?php echo app('translator')->getFromJson('frontend.send'); ?>
									</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			<div class="col-xs-12 col-sm-6 content-box right map-container" data-minheight="250">
				<div id="map" data-animate="true" data-effect="zoomIn">
					<?php echo $map; ?>

				</div>
			</div>
		</section>
	</main>

<?php $__env->stopSection(); ?>

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