<!doctype html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="description" content="">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title><?php echo $title; ?></title>
      <link rel="stylesheet" href="<?php echo front_css() ?>css/style.css">
      <link rel="stylesheet" href="<?php echo front_css() ?>css/bootstrap.min.css">
      <link rel="stylesheet" href="<?php echo front_css() ?>css/owl.carousel.min.css">
      <link rel="stylesheet" href="<?php echo front_css() ?>css/owl.theme.default.min.css">
      <link rel="stylesheet" href="<?php echo front_css() ?>css/animate.css">
      <link rel="stylesheet" href="<?php echo front_css() ?>css/responsive.css">
      <link rel="stylesheet" href="<?php echo front_css() ?>plugin/font-awsome/css/all.min.css">
      <link rel="stylesheet" href="<?php echo admin_css() ?>plugins/sweetalert/sweetalert.min.css">
      <script src="<?php echo admin_css() ?>plugins/sweetalert/sweetalert.min.js"></script>
      <?php echo $project->header_code?>
   </head>
   <style type="text/css">
   	.button_1
   	{
   		background-color: <?php echo $project->all_button_color ?>!important;
   		color:  <?php echo $project->all_button_text_color ?>!important;
   	}
   </style>
   <body>
      <?php 
         $errors =  session()->get('error');
         if (isset($errors)) 
         {?>
      <script>
         swal ( "Oops" ,  "<?php echo $errors?>" ,  "error" )
      </script>
      <?php }
         session()->remove('error');
         $success =  session()->get('success');
         if (isset($success)) 
         {?>
      <script>
         swal ( "Done" ,  "<?php echo $success?>" ,  "success" )
      </script>
      <??>
      <?php }
         session()->remove('success');
         ?>

      <header>
         <nav id="navbar_top" class="navbar navbar-expand-lg navbar-dark" style="background-color:<?php echo $project->header_color ?>;">
            <div class="container">
               <a class="navbar-brand" href="#"><img src="<?php echo base_url($project->logo)?>" alt="<?php echo $project->name?>"></a>
               <div class="d-none d-lg-block">
                  <h1 class="wiggle">
                     <button  class="button button" data-bs-toggle="modal" data-bs-target="#form_model"><b>Book Your Free Site Visit Now !</b></button>
                  </h1>
               </div>
               <div class="d-lg-none">
                  <h1 class="wiggle">
                     <button  class="button button" data-bs-toggle="modal" data-bs-target="#form_model"><b>inquiry Now</b></button>
                  </h1>
               </div>
            </div>
         </nav>
      </header>
      <?php if($section->slider == 1): ?>
	      <section>
	         <div id="home" class="hero-slider owl-carousel owl-theme">
	         	<?php $i=1; foreach ($all_slider as $slider): ?>
		         	
		            <div class="single-hs-item" style="background-image: url(<?php echo base_url(); ?><?php echo $slider->image; ?>)">
		               <div class="d-table">
		                  <div class="d-tablecell">
		                     <div class="hero-text">
		                        <h1 style="color:<?php echo $project->slider_title_color ?>"><?php echo $slider->heading?></h1>
		                        <p tyle="color:<?php echo $project->slider_sub_title_color ?>"><?php echo $slider->sub_heading?></p>
		                     </div>
		                  </div>
		               </div>
		            </div>
	            <?php $i++; endforeach ?>
	         </div>
	      </section>
	  <?php endif;
	  if($section->card == 1):?>
	      <section class="">
	         <div class="container">
	            <div class="row d-flex align-items-center ">
	            	<?php foreach ($all_card as $card): ?>
		               <div class="col-sm-4 col-12 pt-3">
		                  <div class="card">
		                     <div class="card-body text-center">
		                        <h5 class="card-title"><img src="<?php echo base_url(); ?><?php echo $card->image; ?>" width="50px" alt="<?php echo $title; ?>"></h5>
		                        <p class="card-text"><?php echo $card->des; ?></p>
		                     </div>
		                  </div>
		               </div>
	               <?php endforeach ?>
	            </div>
	         </div>
	      </section>
	  	<?php endif; 
	  	if($section->overview_about == 1): ?>
	      <section class="mt-4">
	         <div class="container">
	            <div class="row pb-3">
	               <div class="col-sm-12">
	                  <h4 style="color:<?php echo $project->heading_color?>!important;">01 OVERVIEW</h4>
	               </div>
	            </div>
	            <div class="row">
	               <div class="col-md-4">
	                  <div class="owl-carousel owl-theme overview">
	                  	<?php foreach ($about_us_slider as $slider_about): ?>
		                     <div class="item">
		                        <img class="img-fluid" src="<?php echo base_url() ?><?php echo $slider_about->image; ?>" alt="<?php echo $title; ?>">
		                     </div>
	                     <?php endforeach ?>
	                  </div>
	               </div>
	               <div class="col-md-7 offset-md-1 align-self-center content-1">
	                  <h2 class="text-center pb-4"><?php echo $content->heading; ?></h2>
	                  <p><?php echo $content->content; ?></p>
	               </div>
	            </div>
	         </div>
	      </section>
	  	<?php endif;?>
	      <section class="mt-3 text-center">
	         <div class="container">
	            <div class="col-sm-12">
	               <h1 class="wiggle_1">
	                  <button class="button_1" data-bs-toggle="modal" data-bs-target="#form_model"><b>Book Your Free Site Visit Now !</b></button>
	               </h1>
	            </div>
	         </div>
	      </section>
      <?php if($section->overview_slider == 1): ?>
	      <section class="mt-4">
	         <div class="container">
	            <div class="row">
	               <div class="col-sm-12">
	                  <div class="owl-carousel owl-theme 3rd_cousole">
	                  	<?php foreach ($all_over_view_slider as $over_view_slider): ?>
		                     <div class="item">
		                        <img class="img-fluid" src="<?php echo base_url() ?><?php echo $over_view_slider->image; ?>" alt="<?php echo $title; ?>">
		                        <h6 class="text-center pt-4"><?php echo $over_view_slider->title; ?></h6>
		                     </div>
	                     <?php endforeach ?>
	                  </div>
	               </div>
	            </div>
	         </div>
	      </section>
	  	<?php endif;
	  	if($section->amenities): ?>
	      <section class="mt-5">
	         <div class="container">
	            <div class="row mb-4">
	               <div class="col-sm-12">
	                  <h4 style="color:<?php echo $project->heading_color?>!important;">02 AMENITIES</h4>
	               </div>
	            </div>
	            <div class="row mb-4">
	               <div class="col-sm-12">
	                  <h6 style="color:<?php echo $project->sub_heading_color?>!important;">i) OUTDOOR AMENITIES</h6>
	               </div>
	            </div>
	            <div class="row d-flex align-items-center">
	               <div class="col-sm-12">
	                  <div class="owl-carousel owl-theme 4th_cousole">
	                  	<?php foreach ($all_amenities as $amenities): ?>
		                     <div class="item d-flex align-items-center">
		                        <div class="grey-icon-bg ">
		                           <img class="img-fluid" src="<?php echo base_url() ?><?php echo $amenities->image; ?>" alt="<?php echo $title; ?>">
		                        </div>
		                        <div class="">
		                           <h6 class="text-center"><?php echo $amenities->content; ?></h6>
		                        </div>
		                     </div>
	                     <?php endforeach ?>
	                  </div>
	               </div>
	            </div>
	            <div class="row mb-4 mt-5">
	               <div class="col-sm-12">
	                  <h6 style="color:<?php echo $project->sub_heading_color?>!important;">ii) INDOOR AMENITIES</h6>
	               </div>
	            </div>
	            <div class="row d-flex align-items-center">
	               <div class="col-sm-12">
	                  <div class="owl-carousel owl-theme 4th_cousole">
	                  	<?php foreach ($indoor_amenities as $in_amenities): ?>
		                     <div class="item d-flex align-items-center">
		                        <div class="grey-icon-bg ">
		                           <img class="img-fluid" src="<?php echo base_url() ?><?php echo $in_amenities->image; ?>" alt="<?php echo $title; ?>">
		                        </div>
		                        <div class="">
		                           <h6 class="text-center"><?php echo $in_amenities->content; ?></h6>
		                        </div>
		                     </div>
	                     <?php endforeach ?>
	                  </div>
	               </div>
	            </div>
	         </div>
	      </section>
	  <?php endif;?>
      <section class="mt-5 text-center">
         <div class="container">
            <div class="col-sm-12">
               <h1 class="wiggle_1">
                  <button class="button_1" data-bs-toggle="modal" data-bs-target="#form_model"><b>Book Your Free Site Visit Now !</b></button>
               </h1>
            </div>
         </div>
      </section>
      <?php if($section->resources): ?>
	      <section class="mt-5">
	         <div class="container">
	            <div class="row mb-4">
	               <div class="col-sm-12">
	                  <h4 style="color:<?php echo $project->heading_color?>!important;">03 RESOURCES</h4>
	               </div>
	            </div>
	            <?php foreach ($all_resource as $resource): ?>
		            <div class="row d-flex align-items-center">
		               <div class="col-sm-6 col-8">
		                  <div class="d-flex align-items-center">
		                     <div class="grey-icon-bg ">
		                        <img class="img-fluid" src="<?php echo base_url() ?><?php echo $resource->image; ?>" alt="<?php echo $title; ?>">
		                     </div>
		                     <div class="">
		                        <h6 class="text-center"><?php echo $resource->content; ?> </h6>
		                     </div>
		                  </div>
		               </div>
		               <div class="col-sm-6 col-4">
		                  <a href="#" onclick="open_pdf_model('<?php echo $resource->pdf?>')" data-bs-toggle="modal" data-bs-target="#pdf_form_model"  class="icon-button">
		                     <div class="round-button">
		                        <div class="circle"></div>
		                        <i class="fa fa-chevron-right" aria-hidden="true"></i>
		                     </div>
		                  </a>
		               </div>
		            </div>
	            <?php endforeach ?>
	         </div>
	      </section>
	  <?php endif;
	  if($section->location): ?>
	      <section class="mt-5">
	         <div class="container">
	            <div class="row mb-4">
	               <div class="col-sm-12">
	                  <h4 style="color:<?php echo $project->heading_color?>!important;">04 LOCATE</h4>
	               </div>
	            </div>
	            <div class="row">
	               <div class="col-sm-6 address align-self-center">
	                  <span class="cla ">
	                     <h4><?php echo $location->name; ?></h4>
	                     <h6>Mobile : <a href="tel:+91<?php echo $location->mobile; ?>"><?php echo $location->mobile; ?></a></h6>
	                     <h6>Email ID : <a href="mailto:<?php echo $location->email; ?>"><?php echo $location->email; ?></a></h6>
	                     <h6>Time : <?php echo $location->time; ?></h6>
	                     <h6><?php echo $location->address; ?></h6>
	                  </span>
	               </div>
	               <div class="col-sm-6"><?php echo $location->map; ?></iframe>
	               </div>
	            </div>
	         </div>
	      </section>
	  <?php endif; 
	  if($section->rera_details): ?>
	      <section class="mt-3">
	         <div class="container">
	            <div class="row">
	               <div class="col-sm-12">
	                  <div class="accordion" id="myAccordion">
	                     <div class="accordion-item">
	                        <h1 class="accordion-header" id="headingOne">
	                           <button style="font-size: 25px;" type="button" class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapseOne">RERA DETAILS</button>									
	                        </h1>
	                        <div id="collapseOne" class="accordion-collapse collapse" data-bs-parent="#myAccordion">
	                           <div class="card-body">
	                              <p><?php echo $rear_details->content; ?></p>
	                           </div>
	                        </div>
	                     </div>
	                  </div>
	               </div>
	            </div>
	         </div>
	      </section>
	  <?php endif;?>
      <section class="mt-3 text-center">
         <div class="container">
            <div class="col-sm-12">
               <h1 class="wiggle_1">
                  <button class="button_1" data-bs-toggle="modal" data-bs-target="#form_model"><b>Book Your Free Site Visit Now !</b></button>
               </h1>
            </div>
         </div>
      </section>
      <?php if($section->con_update): ?>
	      <section class="mt-3 d-none">
	         <div class="container">
	            <div class="row mb-4">
	               <div class="col-sm-12">
	                  <h4 style="color:<?php echo $project->heading_color?>!important;">05 CONSTRUCTION UPDATE</h4>
	               </div>
	            </div>
	            <div class="row d-flex align-items-center">
	               <div class="col-sm-12 ">
	                  <div class="owl-carousel owl-theme 5th_cousole">
	                     <div class="item d-flex align-items-center">
	                        <div class="col-sm-7 col-6">
	                           <img class="img-fluid" src="<?php echo front_css() ?>upload/6165171b6b70e.jpg" alt="">
	                        </div>
	                        <div class="col-sm-5 offset-md-2 align-self-center col-6 update">
	                           <h4>Tower E</h4>
	                           <br/>
	                           <h6>(Aug 2021) <br>B 1 Floor Slab Completed</h6>
	                        </div>
	                     </div>
	                  </div>
	               </div>
	            </div>
	         </div>
	      </section>
	      <section class="mt-3 text-center d-none">
	         <div class="container">
	            <div class="col-sm-12">
	               <h1 class="wiggle_1">
	                  <button class="button_1" data-bs-toggle="modal" data-bs-target="#form_model"><b>Book Your Free Site Visit Now !</b></button>
	               </h1>
	            </div>
	         </div>
	      </section>
	  <?php endif;?>
      <section class="mt-3 text-center d-none">
         <div class="container">
            <div class="col-sm-12">
               <h1 class="wiggle_1">
                  <button class="button_1" data-bs-toggle="modal" data-bs-target="#form_model"><b>Book Your Free Site Visit Now !</b></button>
               </h1>
            </div>
         </div>
      </section>
      <section class="mt-5 bg-dark text-center footer">
         <p class="text-white pt-3">This site is not a part of the Facebook™ website or Facebook™ Inc. Additionally, 
            This site is NOT endorsed by Facebook™ in any way. FACEBOOK is a trademark of FACEBOOK, Inc.
         </p>
         <p class="text-white pb-3">Please be advised that revenues and results shown are extraordinary and are not intended to serve as guarantees. In fact, as stipulated by law, we can not and do not make any guarantees about your ability to get results or earn any money with our ideas, information, tools or strategies. We don’t know you and, besides, your results in life are up to you. Agreed? We just want to help you by giving great content, direction and strategies that worked well for us and our students and that we believe can move you forward. All of our terms, privacy policies and disclaimers for this program and website can be accessed via the link above. We feel transparency is important and we hold ourselves (and you) to a high standard of integrity. Thanks for stopping by. We hope this training and content brings you a lot of value.</p>
      </section>
      <script src="<?php echo front_css() ?>js/jquery-3.6.0.min.js"></script>
      <script src="<?php echo front_css() ?>js/bootstrap.min.js"></script>
      <script src="<?php echo front_css() ?>js/owl.carousel.js"></script>
      <script src="<?php echo front_css() ?>js/custom.js"></script>
   </body>
</html>
<?php $uri = service('uri');?>
<div class="modal fade show" id="form_model" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" >
   <div class="modal-dialog modal-dialog-centered" >
      <div class="modal-content modal-xl">
         <div class="modal-header model-header-custom pt-4">
            <button type="button " style="font-size: 12px;" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
         </div>
         <div class="modal-body model-body-custom">
            <h6 class="text-center pb-2 title">PLEASE ENTER YOUR DETAILS BELOW</h6>
            <div class="m-4 mb-1">
               <?php echo form_open(base_url().'/submit-form');?>
               <div class="form-group pb-4">
                  <input type="text" class="form-control" placeholder="Enter Your Full Name" name="name">
               </div>
               <div class="form-group pb-4">
                  <input type="text" class="form-control" placeholder="Enter Your Email ID" name="email">
               </div>
               <div class="form-group pb-4">
                  <input type="number" class="form-control" placeholder="Enter Your Mobile No" name="mobile">
               </div>
               <div class="form-group ">
                  <input type="hidden" name="1_url" value="<?php echo $uri->getSegment(2)?>">
               </div>
               <div class="form-group">
                  <input type="hidden" name="2_url" value="<?php echo $uri->getSegment(3)?>">
               </div>
               <div class="form-group pb-3">
                  <label class="container-checkbox">Opt-in for receiving important information and updates on WhatsApp
                  <input type="checkbox" value="1" checked="checked" name="whatsapp">
                  <span class="checkmark"></span>
                  </label>
               </div>
               <div class="form-group ">
                  <input type="hidden" name="project_id" value="<?php echo $project->id?>">
               </div>
               <div class="form-group text-center">
                  <button class="submit-button" type="submit" style="vertical-align:middle"><span>Submit </span></button>
               </div>
               <?php echo form_close();?>
            </div>
         </div>
      </div>
   </div>
</div>
<script type="text/javascript">
	function open_pdf_model(argument) {
		$('#pdf_url').val(argument);
		$('#pdf_form_model').modal('show');
		onclick
	}
	 function submitDetailsForm() {
	 	$('#pdf_form_model').modal('hide');
      $("#formId").submit();
    }
</script>
<div class="modal fade show" id="pdf_form_model" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" >
   <div class="modal-dialog modal-dialog-centered" >
      <div class="modal-content modal-xl">
         <div class="modal-header model-header-custom pt-4">
            <button type="button " style="font-size: 12px;" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
         </div>
         <div class="modal-body model-body-custom">
            <h6 class="text-center pb-2 title">PLEASE ENTER YOUR DETAILS BELOW</h6>
            <div class="m-4 mb-1">
               <?php echo form_open(base_url().'/submit-form-with-pdf', ['id'=>'formId']);?>
               <div class="form-group pb-4">
                  <input type="text" class="form-control" placeholder="Enter Your Full Name" name="name">
               </div>
               <div class="form-group pb-4">
                  <input type="text" class="form-control" placeholder="Enter Your Email ID" name="email">
               </div>
               <div class="form-group pb-4">
                  <input type="number" class="form-control" placeholder="Enter Your Mobile No" name="mobile">
               </div>
               <div class="form-group ">
                  <input type="hidden" name="pdf_url" id="pdf_url">
               </div>
               <div class="form-group ">
                  <input type="hidden" name="1_url" value="<?php echo $uri->getSegment(2)?>">
               </div>
               <div class="form-group ">
                  <input type="hidden" name="2_url" value="<?php echo $uri->getSegment(3)?>">
               </div>
               <div class="form-group ">
                  <input type="hidden" name="project_id" value="<?php echo $project->id?>">
               </div>
               <div class="form-group pb-3">
                  <label class="container-checkbox">Opt-in for receiving important information and updates on WhatsApp
                  <input type="checkbox" value="1" checked="checked" name="whatsapp">
                  <span class="checkmark"></span>
                  </label>
               </div>
               <div class="form-group text-center">
                  <button onClick='submitDetailsForm()' id="stm_btn" class="submit-button" type="button" style="vertical-align:middle"><span>Submit </span></button>
               </div>
               <?php echo form_close();?>
            </div>
         </div>
      </div>
   </div>
</div>