<!DOCTYPE html>
<html lang="zxx">
<head>
	<title>AKM Accounting & Tax Services</title>
	<?php include('includes/stylesheets.php');?>
</head>
<body>
<?php include('layouts/social.php');?>
	<!-- Header Section -->
	<?php include('layouts/navbar.php');?>
	<!-- Header Section end -->

	<!-- Page top Section end -->
	<section class="page-top-section set-bg" data-setbg="img/page-top-bg/1.jpg">
		<div class="container">
			<h2 class="pro-h">Contact</h2>
			<nav class="site-breadcrumb">
				<a class="sb-item" href="#">Home</a>
				<span class="sb-item active">Contact</span>
			</nav>
		</div>
	</section>
	<!-- Page top Section end -->

	<!-- Contact Section end -->
	<section class="contact-section spad">
		<div class="container">
			<div class="row">
			<?php
				function __autoload($class){
					require_once "classes/$class.php";
				}
				
				$emails = new Emailpro();


				if(isset($_POST['send'])){

					$details = [
						"names"      => $_POST['fn']." ".$_POST['sn'],
						"email"      => $_POST['email'],
						"phone"      => $_POST['phone'],
						"subject"    => $_POST['subject'],
						"message"    => $_POST['message'],
					];

					$res = $emails->sendemail($details);
					if($res){
						?>
						<script>
							Swal.fire(
								'Email Sent!',
								'Thank you for emailing us , we will respond soon!',
								'success'
								)
						</script>
						<?php
					}else{
						?>
						<script>
							Swal.fire(
								'Failed to send email!',
								'Sorry we could not send you email , please try again!',
								'error'
								)
						</script>
						<?php
					}

				}
			?>
				<div class="col-lg-4">
					<div class="contact-text">
						<h2 class="pro-h">Get in touch</h2>
						<p>You can benefit from our in-house experts' knowledge. Any question you might have regarding tax, accounting, payroll or just general business advice will be answered by a professional online. </p>
						<ul>
						
							<li><i class="flaticon-032-placeholder"></i>Block 32 hains street South Africa</li>
							<li><i class="flaticon-029-telephone-1"></i>081 766 3515 / 0716416446</li>
							<li><i class="flaticon-025-arroba"></i>info@accountingtaxservices.co.za</li>
							<li><i class="flaticon-038-wall-clock"></i>Everyday: 08:00 AM - 05:00 PM</li>
						</ul>
						<div class="social-links">
							<a href="https://www.facebook.com/AKM-accounting-tax-services-107699320937796/"><i class="fa fa-facebook"></i></a>
							<a href="https://www.instagram.com/_u/akm102020"><i class="fa fa-instagram"></i></a>
							<a href="https://www.linkedin.com/company/53392036"><i class="fa fa-linkedin"></i></a>
							<a href="#"><i class="fa fa-pinterest"></i></a>
							<a href="https://twitter.com/akm_tax"><i class="fa fa-twitter"></i></a>
							<a href="#"><i class="fa fa-youtube-play"></i></a>
						</div>
					</div>
				</div>
				<div class="col-lg-8">
					<form action="contact.php" method="POST" class="contact-form">
						<div class="row">
							<div class="col-md-6">
								<input type="text" name="fn" placeholder="Your Firstname">
							</div>
							<div class="col-md-6">
								<input type="text" name="sn" placeholder="Your Lastname">
							</div>
							<div class="col-md-6">
								<input type="text" name="phone" placeholder="Your Phone number">
							</div>
							<div class="col-md-6">
								<input type="text" name="email" placeholder="Your E-mail">
							</div>
							<div class="col-md-12">
								<input type="text" name="subject" placeholder="Subject">
								<textarea name="message" placeholder="Your Message"></textarea>
								<button type="submit" name="send" class="site-btn">send message</button>
							</div>
						</div>
					</form>
				</div>
			</div>
			<div class="map">
				<iframe src="https://maps.google.com/maps?q=south%20africa&t=&z=7&ie=UTF8&iwloc=&output=embed" style="border:0" allowfullscreen></iframe>
			</div>
		</div>
	</section>
	<!-- Contact Section end -->

	<!-- Score Section end -->
	<!-- <section class="score-section text-white set-bg" data-setbg="img/score-bg.jpg">
		<div class="container">
			<div class="row">
				<div class="col-xl-6 col-lg-8">
					<h2>Calculate my Score</h2>
					<h4>Check your credit reports as often as you want, it won't affect your scores.</h4>
					<a href="#" class="site-btn sb-big">show my score</a>
				</div>
			</div>
			<img src="img/hand.png" alt="" class="hand-img">
		</div>
	</section> -->
	<!-- Score Section end -->


	<!-- Footer Section -->
	<?php include('layouts/footer.php');?>
	<!-- Footer Section end -->
	
	<!--====== Javascripts & Jquery ======-->
	<?php include('includes/scripts.php');?>

	</body>
</html>
