<!DOCTYPE html>
<html lang="en">

<!-- Begin Head -->

<head>
	<!--=== Required meta tags ===-->
	<meta charset="utf-8">
	<?= isset($site_settings['meta_description'])?'<meta name="description" content="'.$site_settings['meta_description'].'">':'' ?>
  	<?= isset($site_settings['meta_keywords'])?'<meta name="keywords" content="'.$site_settings['meta_keywords'].'">':'' ?>
  	<?= isset($site_settings['meta_author'])?'<meta name="author" content="'.$site_settings['meta_author'].'">':'' ?>
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<!--=== custom css ===-->
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap"
		rel="stylesheet">
	<link rel="stylesheet" href="<?=base_url('assets/landing_assets/css/swiper-bundle.css');?>">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css"
		crossorigin="anonymous" />
	<link rel="shortcut icon" type="image/ico" href="<?= (isset($site_settings['site_favicon']) && !empty($site_settings['site_favicon']))?base_url($site_settings['site_favicon']):base_url('assets/landing_assets/images/favicon.png'); ?>" />
	<link rel="stylesheet" href="<?=base_url('assets/landing_assets/css/style.css');?>">
	<!--=== custom css ===-->
	<title><?= isset($site_settings['site_title'])?$site_settings['site_title']:'Pixel Pages' ?></title>

	<!-- Facebook Pixel Code -->
	<script>
		!function (f, b, e, v, n, t, s) {
			if (f.fbq) return; n = f.fbq = function () {
				n.callMethod ?
					n.callMethod.apply(n, arguments) : n.queue.push(arguments)
			}; if (!f._fbq) f._fbq = n;
			n.push = n; n.loaded = !0; n.version = '2.0'; n.queue = []; t = b.createElement(e); t.async = !0;
			t.src = v; s = b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t, s)
		}(window,
			document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
		fbq('init', '212563324850714');
		fbq('track', 'PageView');
	</script>
	<noscript>
		<img height="1" width="1" style="display:none"
			src="https://www.facebook.com/tr?id=212563324850714&ev=PageView&noscript=1" />
	</noscript>
	<style type="text/css">
		.error {
			color: #f00;
		}
	</style>
	<!-- DO NOT MODIFY -->
	<!-- End Facebook Pixel Code -->

</head>

<body>
	<!-- Bottom To Top -->
	<div class="cv_top_icon">
		<a id="button" class="show">
			<svg width="23" height="18" viewBox="0 0 23 18">
				<path
					d="M13.825,18.000 C10.772,18.000 7.928,16.517 6.217,14.033 C5.870,13.530 6.006,12.845 6.519,12.505 C7.032,12.165 7.729,12.297 8.076,12.801 C9.369,14.678 11.518,15.799 13.825,15.799 C17.647,15.799 20.757,12.749 20.757,9.000 C20.757,5.251 17.647,2.200 13.825,2.200 C11.512,2.200 9.359,3.326 8.067,5.212 C7.721,5.717 7.024,5.851 6.510,5.512 C5.996,5.173 5.859,4.489 6.205,3.985 C7.915,1.490 10.763,-0.000 13.825,-0.000 C18.884,-0.000 23.000,4.037 23.000,9.000 C23.000,13.963 18.884,18.000 13.825,18.000 ZM11.293,6.704 C10.902,6.313 10.902,5.679 11.293,5.287 C11.683,4.896 12.316,4.896 12.707,5.287 L15.706,8.291 C15.730,8.315 15.752,8.339 15.772,8.365 C15.777,8.371 15.782,8.377 15.787,8.384 C15.802,8.403 15.817,8.423 15.831,8.443 C15.835,8.449 15.838,8.455 15.842,8.462 C15.856,8.483 15.869,8.505 15.881,8.527 C15.883,8.532 15.886,8.537 15.888,8.541 C15.901,8.566 15.913,8.590 15.923,8.616 C15.925,8.619 15.925,8.622 15.927,8.626 C15.938,8.653 15.948,8.680 15.956,8.708 C15.957,8.712 15.958,8.715 15.959,8.719 C15.967,8.747 15.974,8.774 15.980,8.803 C15.982,8.812 15.982,8.820 15.984,8.829 C15.988,8.852 15.992,8.876 15.995,8.900 C15.998,8.933 16.000,8.966 16.000,9.000 C16.000,9.033 15.998,9.067 15.995,9.100 C15.992,9.124 15.988,9.148 15.984,9.172 C15.982,9.180 15.982,9.189 15.980,9.197 C15.974,9.226 15.967,9.254 15.959,9.282 C15.958,9.285 15.957,9.288 15.956,9.292 C15.948,9.320 15.938,9.348 15.927,9.375 C15.925,9.378 15.925,9.381 15.923,9.384 C15.913,9.410 15.901,9.435 15.888,9.459 C15.886,9.464 15.883,9.468 15.881,9.473 C15.869,9.495 15.856,9.517 15.842,9.539 C15.838,9.545 15.835,9.551 15.831,9.557 C15.817,9.577 15.802,9.597 15.787,9.616 C15.782,9.623 15.777,9.629 15.772,9.636 C15.752,9.661 15.730,9.685 15.707,9.708 L12.707,12.712 C12.511,12.908 12.256,13.006 12.000,13.006 C11.744,13.006 11.488,12.908 11.293,12.712 C10.902,12.321 10.902,11.688 11.293,11.296 L12.586,10.001 L1.000,10.001 C0.448,10.001 -0.000,9.553 -0.000,9.000 C-0.000,8.447 0.448,7.998 1.000,7.998 L12.586,7.998 L11.293,6.704 Z">
				</path>
			</svg>
		</a>
	</div>
	<!-- Bottom To Top -->

	<!-- Banner Section Start -->
	<div class="pp-banner-wrapper">
		<div class="pp-banner-logo">
			<a href="<?=base_url();?>">
				<img src="<?= (isset($site_settings['site_logo']) && !empty($site_settings['site_logo'])) ? base_url($site_settings['site_logo']) : base_url('assets/landing_assets/images/logo.png'); ?>" alt="">
			</a>
			<div class="pp-login-btn">
				<?php if(isset($_SESSION['logged_in'])){ 
					echo ($this->session->userdata('u_type') == 1) ? '<a href="' . base_url('admin/dashboard') . '" class="pp-btn pp-btn-border">Dashboard</a>' : (($this->session->userdata('u_type') == 2) ? '<a href="' . base_url('dashboard') . '" class="pp-btn pp-btn-border">Dashboard</a>' : '');
				?>
					<a href="<?=base_url('logout');?>" class="pp-btn">Logout</a>
				<?php }else{ ?>
					<a href="<?=base_url('login');?>" class="pp-btn pp-btn-border">Login</a>
					<a href="<?=base_url('signup');?>" class="pp-btn">Sign Up</a>
				<?php } ?>
			</div>
		</div>
		<div class="container">
			<div class="row">
				<div class="col-lg-6 col-md-12 align-self-center">
					<div class="pp-banner-heading">
						<img src="<?=base_url('assets/landing_assets/images/banner-vector3.png');?>" alt="" class="banner-circle">

						<div class="pp-banner-box-heading">
							<h4>Comparable To Top Page Builders Such As Wix, Webflow, Dorik And Other Prominent
								Apps</h4>
						</div>
						<h1>Create Your Own Website Page Builder with a Collection of 100+ Stunning
							Templates</h1>
						<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
							laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
							architecto beatae vitae dicta sunt explicabo.</p>
					</div>
				</div>
				<div class="col-lg-6 col-md-12 align-self-center">
					<div class="pp-banner-box">
						<img src="<?=base_url('assets/landing_assets/images/banner-vector1.png');?>" alt="">
						<img src="<?=base_url('assets/landing_assets/images/banner-vector2.png');?>" alt="">
						<div class="pp-banner-box-inner">

							<div class="pp-banner-main-img">
								<img src="<?=base_url('assets/landing_assets/images/banner-main-img.png');?>" alt="">
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- Banner Section End -->

	<!-- Credential Section Start -->
	<section class="pp-crendlt-wrapper">
		<div class="container">
			<div class="ps-admin-crendl-box">
				<div class="row">
					<div class="col-lg-6 col-md-12 align-self-center">
						<div class="ps-about-img" data-tilt data-tilt-max="20" data-tilt-speed="100"
							data-tilt-perspective="1000">
							<img src="<?=isset($about_us['about_image'])?base_url($about_us['about_image']):'';?>" alt="" />
						</div>
					</div>
					<div class="col-lg-6 col-md-12 align-self-center">
						<div class="ps-admin-crdntl-heading">
							<h4><?=isset($about_us['about_heading'])?$about_us['about_heading']:'';?></h4>
							<h1><?=isset($about_us['about_sub_heading'])?$about_us['about_sub_heading']:'';?></h1>
							<p><?=isset($about_us['about_description'])?$about_us['about_description']:'';?></p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<!-- Credential Section End -->


	<!-- Demos Section Start -->
	<div class="pp-demos-wrapper">
		<div class="container">
			<div class="pp-demos-heading">
				<h4>Choose Your Plan</h4>
			</div>
			<div class="pp-demo-main">
				<div class="row gy-4">
					<?php if(!empty($plans_list)){ foreach ($plans_list as $plans){
						$durations = json_decode( PLANS_DURATION, true ); 
						$p_currency = isset($symbol_ar[ $plans['p_currency'] ])?$symbol_ar[ $plans['p_currency'] ]:$plans['p_currency'];
					?>
					<div class="col-lg-4 col-md-6 col-sm-12">
						<div class="pricing-box">
							<div class="border-content">
								<h5 class="pricing-btn1"><?=$plans['p_name'];?></h5>
								<div class="pricing-text">
									<?='<span>' . $p_currency . $plans['p_price'] . '</span> <sub>/ ' . $durations[$plans['p_interval']] . '</sub>';?>
								</div>
								<p><?=($plans['p_price']==0)?"Get Your ".$plans['p_interval']." Day Free Trial":"Get Your ".$plans['p_interval']." Day Trial";?></p>
							</div>
							<ul>
								<li>
									<span><?="Create Upto ".$plans['p_sites']." Sites";?></span>
								</li>
								<li>
									<span><?=$plans['p_description'];?></span>
								</li>
							</ul>
							<a href="<?=isset($_SESSION['user_id']) ? base_url('plans') : base_url('login');?>" class="pp-btn">Choose Plan</a>
						</div>
					</div>
					<?php }} ?>
				</div>
			</div>
		</div>
	</div>
	<!-- Demos Section End -->

	<!-- Builder Section Start -->
	<div class="pp-builder-wrapper bf_swiper_slider">
		<div class="container">
			<h2 class="pp-gred-heading">Testimonial</h2>
			<div class="swiper-container">
				<div class="swiper-wrapper">
					<?php if (!empty($testimonial_settings)) { for ($i = 0;$i < $testimonial_count;$i++) { ?>
					<div class="swiper-slide">
						<div class="bf_testimonial_wrapper">
							<div class="bf_profile_detail">
								<div class="bf_suggestions_image">
									<img src="<?= base_url($testimonial_settings['testimonial_image'][$i]); ?>" alt="">
								</div>
								<div class="bf_suggestions_text">
									<h6><?= $testimonial_settings['testimonial_title'][$i]; ?></h6>
									<p><?= $testimonial_settings['testimonial_type'][$i]; ?></p>
								</div>
							</div>
							<div class="pp-client-text">
								<p><?= $testimonial_settings['testimonial_description'][$i]; ?></p>
							</div>
						</div>
					</div>
					<?php }} ?>
				</div>
				<div class="swiper-pagination"></div>
			</div>
		</div>
	</div>
	<!-- Builder Section End -->


	<!-- Choose Section Start -->
	<div class="pp-choose-wrapper">
		<div class="container">
			<div class="pp-choose-heading">
				<h2>Contact Us</h2>
				<h4>Get In Touch With Us</h4>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<form id="landing-contact-form">
						<div class="mt_popup_form">
							<div class="mt_popup_form_container">
								<div class="row">
									<div class="col-lg-6 col-md-12">
										<div class="mt_form_input">
											<label>Name</label>
											<input type="text" placeholder="Enter Your Name" name="c_name" />
										</div>
									</div>
									<div class="col-lg-6 col-md-12">
										<div class="mt_form_input">
											<label>Email</label>
											<input type="email" name="c_email" placeholder="Enter Your Email" />
										</div>
									</div>
									<div class="col-lg-6 col-md-12">
										<div class="mt_form_input">
											<label>Mobile</label>
											<input type="text" placeholder="Enter Your Mobile" name="c_mobile" />
										</div>
									</div>
									<div class="col-lg-6 col-md-12">
										<div class="mt_form_input">
											<label>Subject</label>
											<input type="text" placeholder="Enter Subject" name="c_subject" />
										</div>
									</div>
									<div class="col-lg-12 col-md-12">
										<div class="mt_form_input">
											<label>Message</label>
											<textarea type="text" placeholder="Enter Your Message" name="c_message"></textarea>
										</div>
									</div>
									<div class="col-lg-12 col-md-12">
										<div class="mt_form_input">
											<button type="submit" class="pp-btn">Submit</button>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div id="alert-container"></div>
					</form>					
				</div>
			</div>
		</div>
	</div>
	<!-- Choose Section End -->



	<!-- Copyright Section Start -->
	<div class="pp-copyright-wrapper">
		<div class="container">
			<div class="pp-copyright-text">
				<p><?= isset($site_settings['site_copyright'])?$site_settings['site_copyright']:'' ?></p>
				<ul>
					<li><a href="<?= base_url('privacy-policy'); ?>">Privacy Policy</a></li>
					<li><a href="<?= base_url('terms-conditions'); ?>">Terms & Conditions</a></li>
				</ul>
			</div>
		</div>
	</div>
	<!-- Copyright Section End -->

	<!--=== Optional JavaScript ===-->
	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" crossorigin="anonymous"></script>
	<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.1/js/bootstrap.min.js"
		crossorigin="anonymous"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-tilt/1.8.1/vanilla-tilt.min.js"
		crossorigin="anonymous"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/smooth-scroll/16.1.3/smooth-scroll.min.js"
		crossorigin="anonymous"></script>
	<script src="<?=base_url('assets/landing_assets/js/swiper-bundle.js');?>"></script>
	<script src="<?=base_url('assets/landing_assets/js/custom.js');?>"></script>
	<!--=== Optional JavaScript ===-->

	<script>
	$(document).ready(function() {
	    $.validator.addMethod("mobile", function(value, element) {
            return this.optional(element) || /^[6-9][0-9]{9}$/.test(value);
        }, "Please enter a valid mobile number (10 digits, starting with 6-9)");
        
	    $('#landing-contact-form').validate({
	    	errorElement: 'label',
	        errorClass: 'error',
	        highlight: function(element) {
	            $(element).css('border', '1px solid red');
	        },
	        unhighlight: function(element) {
	            $(element).css('border', '');
	        },
	        errorPlacement: function(error, element) {
	            error.insertAfter(element);
	        },
	        rules: {
	            c_name: { required: true },
	            c_email: { required: true, email: true },
	            c_mobile: { required: true, mobile: true },
	            c_subject: { required: true },
	            c_message: { required: true }
	        },
	        messages: {
	            c_name: { required: "Please enter your name" },
	            c_email: { required: "Please enter your email address", email: "Please enter a valid email address" },
	            c_mobile: { required: "Please enter mobile number" },
	            c_subject: { required: "Please enter subject" },
	            c_message: { required: "Please enter your message" }
	        },
	        submitHandler: function(form) {
	            var formData = new FormData(form);
	            formData.append('<?=$csrf['name']?>','<?=$csrf['hash']?>');
	            $.ajax({
	                type: 'POST',
	                url: '<?=base_url('frontend/contact_us');?>',
	                data: formData,
	                processData: false,
    				contentType: false,
	                success: function(response) {
	                	var resp = JSON.parse(response);
	                	console.log(resp);
	                	if(resp.status==1){
		                    $('#alert-container').html('<div class="alert alert-success"><strong>Success!</strong> '+resp.message+'</div>');
		                    setTimeout(() => { $('#alert-container').html(''); }, 2000);
		                    form.reset();
		                }else{
		                	$('#alert-container').html('<div class="alert alert-danger"><strong>Error!</strong> '+resp.message+'</div>');
		                    setTimeout(() => { $('#alert-container').html(''); }, 2000);
		                }	                    
	                },
	                error: function(xhr, status, error) {
	                	$('#alert-container').html('<div class="alert alert-danger"><strong>Error!</strong> An error occurred: ' + error + '</div>');
	                    setTimeout(() => { $('#alert-container').html(''); }, 2000);
	                }
	            });
	        }
	    });
	});
	</script>

</body>

</html>