    <!-- Title -->
    <title>IIMTT Montessori Teacher Training in Nairobi | Enroll Now!</title>
   <meta name="description" content="Our experienced faculty, hands-on training provide a holistic learning experience that helps you develop a deep understanding of the Montessori philosophy and techniques."> 
   <link rel="canonical" href="https://iimtt.org/montessori-teacher-training-nairobi">
   <!-- ✅ Add Google reCAPTCHA script -->
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  </head>
  <body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5QHMZ5P"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php
include("_navbar.php");
?>
<!-----------------------------------------------new section------------------------------------>
<!-- IMAGE -->
    <section data-jarallax data-speed=".8" class="py-12 bg-cover shadow-light-lg overlay overlay-dark overlay-60"
        style="background-image: url(/assets/img/kolkata-centers.png);">
        <div class="container">
            <div class="row">
                <div class="col-12 col-md-12 col-lg-12 k1">
                        <!-- Heading -->
                        <div>
                            <h1 style="color:#f7a325;text-align: center;" class="display-3 font-weight-bold">
                            IIMTT Nairobi
                            </h1>
                            <p class="text-white text-center">
                            Leading the early childhood industry is the International Institute Of Montessori Teacher Training (IIMTT) popular across India and worldwide for offering practical courses rooted in Maria Montessori’s philosophy. We are now in your city Nairobi! Our industry professionals at the centres will help you grasp the cognitive methodology of teaching while enhancing your skillset as a profound Montessori guide and mentor.
                            </p>
                        </div>
                </div>
            </div> <!-- / .row -->
        </div> <!-- / .container -->
    </section>
<!-- SHAPE -->
<div class="position-relative">
    <div class="shape shape-bottom shape-fluid-x svg-shim">
        <svg viewBox="0 0 2880 48" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M0 48h2880V0h-720C1442.5 52 720 0 720 0H0v48z" fill="rgb(239, 246, 252);" />
        </svg>
    </div>
</div>
  
   
<!-- about Section start-->
<section style="background-color: rgb(239, 246, 252);" class="section section-quaternary border-0 py-0 appear-animation pt-4 pb-4" data-appear-animation="fadeIn">
    <div class="container">
        <div class="row align-items-center justify-content-center justify-content-lg-between pb-5 pb-lg-0">
            <div class="col-lg-6 order-2 order-lg-1 pt-4 pt-lg-0 pb-5 pb-lg-0 mt-5 mt-lg-0 appear-animation" data-appear-animation="fadeInRightShorter" data-appear-animation-delay="100">
                <h2 class="font-weight-bold text-black text-7 mb-2">About Us</h2>
                <p class="font-weight-light text-muted text-4">Established to meet the sky-rocketing demand of Montessori teachers, IIMTT is regarded among the world’s finest, globally accredited Montessori course providers. We strive towards shaping confident teachers who are valued for their mentorship and qualification no matter which Montessori institution they teach in by ensuring constant academic support and professional guidance.</p>
                <a class="navbar-btn btn btn-sm ml-auto bt" href="#c4">Contact us</a>
            </div>
            <div class="col-lg-6 order-1 order-lg-2 scale-2">
                <img class="img-fluid box-shadow-3 my-2 border-radius" src="/assets/img/teacher-kids1.jpg" alt="about us">
            </div>
        </div>
    </div>
</section>
<!-- about Section End-->
<section class="pt-7 py-8 border-bottom">
      <div class="container">
      <H2 style="text-align: center;color: #2dadb8;font-weight:800">Course Offered</H2>
      <div class="container">
         <div class="row">
         <div class="col-0 col-md-1 d-flex"></div>
            <div class="col-12 col-md-5 d-flex">
               <!-- Card -->
               <div class="card mb-6 shadow lift lift-lg" style="">
                  <!-- Image -->
                  <div class="card-img-top">
                     <!-- Image -->
                     <img src="/assets/img/teacher-kids2.jpg" alt="graduate diploma mentessori" class="card-img-top">
                  </div>
                  <!-- Body -->
                  <div class="card-body">
                     <!-- Heading -->
                     <h3>
                        Graduate Diploma in Montessori Teacher Training
                     </h3>
                  </div>
                  <div class="d-flex">
                     <div style="flex:1;background-color:#f7a325;border-bottom-left-radius:1rem;border-bottom-right-radius:1rem;" class="py-2 text-center"><a class='text-black text-decoration-none' href='/nairobi/graduate-diploma-montessori-teacher-training.html'>View Details</a></div>
<!--                      <div style="flex:1;background-color:#094268;color:white;border-bottom-right-radius:1rem;" class="py-2 text-center">Book a Seat</div> -->
                  </div>
               </div>
            </div>
            <div class="col-12 col-md-5 d-flex">
               <!-- Card -->
               <div class="card mb-6 shadow lift lift-lg">
                  <!-- Image -->
                  <div class="card-img-top">
                     <!-- Image -->
                     <img src="/assets/img/teacher-kids3.jpg" alt="post graduate diploma mentessori" class="card-img-top">
                  </div>
                  <!-- Body -->
                  <div class="card-body">
                     <!-- Heading -->
                     <h3>
                        Post Graduate Diploma in Montessori Teacher Training
                     </h3>
                  </div>
                  <div class="d-flex">
                     <div style="flex:1;background-color:#f7a325;border-bottom-left-radius:1rem;" class="py-2 text-center"><a class='text-black text-decoration-none' href='/nairobi/post-graduate-diploma-montessori-teacher-training.html'>View Details</a></div>
                     <div style="flex:1;background-color:#094268;color:white;border-bottom-right-radius:1rem;cursor: pointer" class="py-2 text-center" data-toggle="modal" data-target="#exampleModalCenter">Book a Seat</div>
                  </div>
               </div>
            </div>
         </div>
      <div class="text-center"><a href="https://atheneumglobal.education/" target='_blank'><button style="background-color: #2dadb8;border:none;color:white;border-radius:10px">Learn Online</button></a></div>
         <!-- / .row -->
      </div>
      <!-- / .container -->
   </div>
   </section>
<!---------------------------------------------- payment form ------------------------------->
  <div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content" style="background-color:#D9D9D9">
     <h2 style="color:#F68F51;text-align:center;font-weight:bold" class="pt-6">Book Seat</h2>
      <div class="modal-header p-0 pr-7" style="border-bottom:none;margin-top:-50px">
        <button type="button" class="close" style='color:black' data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body pb-0">
        <div class="alert alert-danger" id="paymentWarning" style="display: none;">Fill all the fields!</div>
           <div class="alert alert-success" id="paymentSuccess" style="display: none;">Thank You! We will contact you soon!</div>
                <form class="" role="form" method="post">
                <div class="row">
                <div class="col-12 col-lg-12">
                    <div class="form-group mb-5">
                        <input type="text" aria-required="true" name="widget-contact-form-name" required class="form-control required name shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" id="user" placeholder="Your Name">
                    </div>
                </div>
                
                </div>
                <div class="row">
                <div class="col-12 col-sm-4"><div style="margin-left:-40px" class="pt-7 d-none d-sm-block"><img src='/assets/img/book-a-seat.png'/></div></div>
                <div class="col-12 col-sm-8">
                    <div class="form-group mb-5">
                        <!-- Input -->
                        <input type="email" id="paymentEmail" aria-required="true" name="widget-contact-form-email" required class="form-control required email shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" placeholder="Your Email">
							<p id="paymentEmailError" style="color: red; display: none;">Enter a valid email address</p>
                    </div>
                	<div class="form-group mb-5">
                        <input class="form-control shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" id="contact" type="number" name="telephone" placeholder="Your Contact" required>
                    	<p id="contactError" style="color: red; display: none;">Enter a valid phone number</p>
                    </div>
                	<div class="form-group mb-5">
                        <input type="text" id="city" aria-required="true" name="widget-contact-form-city" required class="form-control required name shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" placeholder="Your City">
                    </div>
                    <!-- ✅ Google reCAPTCHA Widget -->
                    <div class="form-group text-center">
                        <div class="g-recaptcha" data-sitekey="6LfLjvgrAAAAAIlFINpRhfP5HgnJbJ8lPQbVky8Z"></div>
                        <p id="captchaError" style="color: red; display: none;">Please verify you are not a robot.</p>
                    </div>
                	<div class="form-group mb-0 text-center">
                        <button style="background-color: #f7a325;margin:10px 0px;border-radius:26px;" class="btn btn-sm lift shadow-lg px-8" type="button" onclick="paymentSubmitForm()">&nbsp;Book a Seat</button>
                    </div>
                </div>
                </div>
                </form>
      </div>
    </div>
  </div>
</div>
<!------------------------------------------------------------------------------------------>
  <section class="py-4 py-md-4">
      <div class="container">
        <div class="row justify-content-center">
          <div class="col-12 col-md-10 col-lg-8 text-center">

            <!-- Headin -->
			<H2 style="text-align: center;color: #2dadb8;border-bottom:2px solid #2dadb8;max-width:220px;" class="mx-auto">Training Videos</H2>


          </div>
        </div> <!-- / .row -->
        <div class="row">
          <div class="col-12">
          

            <!-- Image -->
            <div class="row gx-4 mb-4">
            <div class="col-1"></div>
              <div class="col-12 col-sm-7 mb-4 mb-sm-0">

                <div class="a5">
                      <iframe width="760" height="400" src="https://www.youtube.com/embed/yfjMbITdpKY" alt="Montessori School Education" frameborder="0"
                        allow="accelerometer;controls; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                        allowfullscreen></iframe>
                
                    </div>

              </div>
              <div class="col-12 col-md-4 mt-auto">

               <div class="a5">
                      <iframe width="760" height="400" src="https://www.youtube.com/embed/wX5rRb9fjRY" alt="Montessori School Education" frameborder="0"
                        allow="accelerometer;controls; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                        allowfullscreen></iframe>
                
                    </div>
              </div>

            </div>
			<div class="row gx-4 mb-4">
              <div class="col-12 col-md-6 mb-4 mb-sm-0">

                <div class="a5">
                      <iframe width="760" height="400" src="https://www.youtube.com/embed/eXencocEgis" alt="Montessori School Education" frameborder="0"
                        allow="accelerometer;controls; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                        allowfullscreen></iframe>
                
                    </div>

              </div>
              <div class="col-12 col-md-6">

               <div class="a5">
                      <iframe width="760" height="400" src="https://www.youtube.com/embed/7IRyd5F4E30" alt="Montessori School Education" frameborder="0"
                        allow="accelerometer;controls; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                        allowfullscreen></iframe>
                
                    </div>

              </div>
            </div>
          	<div class="row gx-4 mb-4">
            <div class="col-2"></div>
              <div class="col-12 col-md-7">

                <div class="a5">
                      <iframe width="760" height="400" src="https://www.youtube.com/embed/9vVE8b1R3c8" alt="Montessori School Education" frameborder="0"
                        allow="accelerometer;controls; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
                        allowfullscreen></iframe>
                
                    </div>

              </div>
            </div>
          </div>
        </div> <!-- / .row -->
      </div> <!-- / .container -->
    </section>
<!----------------------------------------------first section------------------------------->
 <!-- WELCOME -->
 <section class="mb-4">
      <div class="fluid-container">
        <div class="row justify-content-center">
          <div class="col-12 col-md-10 col-lg-8 text-center">

          <H2 style="text-align: center;color: #2dadb8;">Gallery
        </H2>
       
          </div>
        </div> <!-- / .row -->
        <div class="row">
          <div class="col-12">

            <!-- Image -->
            <div class="row gx-4">
              <div class="col-3">
                <img class="img-fluid rounded shadow-lg" src="/assets/img/nairobi-center4.jpg" alt="Nairobi center">
              </div>
              <div class="col-3">
                <img class="img-fluid rounded shadow-lg mb-4" src="/assets/img/nairobi-center1.jpg" alt="Nairobi center">
                <img class="img-fluid rounded shadow-lg mb-4" src="/assets/img/nairobi-center5.jpg" alt="Nairobi center">
              </div>
              <div class="col-3">
                <img class="img-fluid rounded shadow-lg mb-4" src="/assets/img/nairobi-center8.jpg" alt="Nairobi center">
              </div>
              <div class="col-3">
                <img class="img-fluid rounded shadow-lg mb-4" src="/assets/img/nairobi-center2.jpg" alt="Nairobi center">
                <img class="img-fluid rounded shadow-lg mb-4" src="/assets/img/nairobi-center7.jpg" alt="Nairobi center">
              </div>
            </div>

          </div>
        </div> <!-- / .row -->
      </div> <!-- / .container -->
    </section>
    <!-- BRANDS -->
<section class="bg-white my-8">
<h2 class="display-4 font-weight-bold text-center">Our Accreditations and Memberships</h2>
<div class="container">
	<p class="text-center">IIMTT is accredited by an Ofqual-regulated UK Awarding Body, ISO-certified, CPD UK (accreditation no #778846)  and registered on the UK Register of Learning Providers (UKPRN:10086062).</p>
    <div class="flickity-viewport-visible pt-2 pb-1"
      data-flickity='{"imagesLoaded": true, "initialIndex": 6, "pageDots": false, "prevNextButtons": false, "contain": true, "autoPlay": true}'>

      <div class="col-8 col-md-3 col-lg-2.5">
        <!-- Brand -->   
          <img src="./assets/img/iso-logo.png" alt="iso logo" style="margin:0 20px;width: 100px;">

      </div>
      <div class="col-8 col-md-3 col-lg-2.5">

        <!-- Brand -->
        <img src="./assets/img/Chartered College of Teaching.png" alt="cct logo" style="margin:0px 20px;width: 100px;">
      </div>
      <div class="col-8 col-md-3 col-lg-2.5">

        <!-- Brand -->
        <img src="./assets/img/IMC.png" alt="imc logo" style="margin:0px 20px;width: 100px;">

      </div>
      <div class="col-8 col-md-3 col-lg-2.5">

        <!-- Brand -->
       <img src="./assets/img/ims-logo.png" alt="ims logo" style="margin:0 20px;width: 100px;">
      </div>
      <div class="col-8 col-md-3 col-lg-3">

        <!-- Brand -->
      <img src="./assets/img/LLT-logo.png" alt="london teacher training college" style="margin:0 20px;width: 100px;">
      </div>
      <div class="col-8 col-md-3 col-lg-2.5">
        <img src="./assets/img/focus-awards-logo.png" alt="focusawards" style="margin-top:40px;width: 140px;">

        <!-- Brand -->

      </div>
      <div class="col-8 col-md-3 col-lg-2.5">
        <!-- Brand -->
        <img src="./assets/img/ofqual-logo.png" alt="ofqual logo" style="margin-top: 20px;width: 100px;">
      </div>

      <div class="col-8 col-md-3 col-lg-2.5">
        <!-- Brand -->
        <img src="./assets/img/cpd.png" alt="ofqual logo" style="width: 100px;">
      </div>
      
    </div>
  </div> <!-- / .container -->
</section>
<!-- SCALABLE -->
<section style="background-color: rgb(239, 246, 252);" class="pt-6 pb-8">
      <div class="container">
        <div class="row justify-content-center">
          <div class="col-12 text-center">

            <!-- Heading -->
            <h2 class="font-weight-bold"  id="c4">
              Let us hear from you directly!
            </h2>
          </div>
        </div> <!-- / .row -->
        <div class="row justify-content-center">
          <div class="col-12 col-lg-6">

          <div id="map">
        <div class="a8">
        <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3988.8623462642067!2d36.80333081457251!3d-1.254275099085156!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x182f170cefcf0211%3A0x8af1a19bb255bc7c!2sEldama%20Ravine%20Cl%2C%20Nairobi%2C%20Kenya!5e0!3m2!1sen!2sin!4v1615015604805!5m2!1sen!2sin" width="500" height="460" style="border:0;" allowfullscreen="" loading="lazy"></iframe>
</div></div>

          </div>
          <div class="col-12 col-lg-6">

            <!-- Form -->
          <div class="icon-contacts pb-3">
    <p class="mbr-text align-left mbr-fonts-style display-7">
        <b>Phone:</b> +254 737 999928<br>
        <b>Email:</b> nairobi@iimtt.org<br>
        <b>Follow us:</b><a href="https://www.facebook.com/IIMTT.Nairobi/" class="text-decoration-none" target="_blank">
            <img src="/assets/img/icons/social/facebook.svg" class="list-social-icon" alt="logo">
        </a>
        <!--<a href="https://twitter.com/iimtt_corporate" class="text-decoration-none" target="_blank">
                  <img src="/assets/img/icons/social/twitter.svg" class="list-social-icon" alt="logo">-->
        </a><a href="https://www.instagram.com/iimtt.nairobi/" class="text-decoration-none" target="_blank">
            <img src="/assets/img/icons/social/instagram.svg" class="list-social-icon" alt="logo">
        </a>
    </p>
</div>
           <div class="alert alert-danger" id="warning" style="display: none;">Fill all the fields!</div>
           <div class="alert alert-success" id="success" style="display: none;">Thank You! We will contact you soon!</div>
                <form class="" role="form" method="post">
                <div class="row">
                <div class="col-12 col-lg-6">
                    <div class="form-group mb-5">
                        <!-- Input -->
                        <input type="text" aria-required="true" name="widget-contact-form-name" required
					class="form-control required name" id="name1" placeholder="Enter your Name">
                    </div>
                </div>
                <div class="col-12 col-lg-6">
                    <div class="form-group mb-5">
                        <!-- Input -->
                        <input class="form-control" id="phn" type="number" name="telephone"
								placeholder="Enter your Contact number" required>
                    <p id="phnError" style="color: red; display: none;">Enter a valid phone number</p>
                    </div>
                </div>
                </div>
                <div class="row">
                <div class="col-12 col-lg-6">
                    <div class="form-group mb-5">
                        <!-- Input -->
                        <input type="email" id="email" aria-required="true" name="widget-contact-form-email"
								required class="form-control required email" placeholder="Enter your Email">
							<p id="emailError" style="color: red; display: none;">Enter a valid email address</p>
                    </div>
                </div>
                <div class="col-12 col-lg-6">
                    <div class="form-group">
							<input type="text" class="form-control" id="addr" name="address"
								placeholder="Enter your Full Address" required>
					</div>
                </div>
                </div>
                    <div class="row">
						<div class="form-group col-md-12">
							<select id="req" class="form-control" name="gender" required>
								<option value="">Select Course Name</option>
								<option value="Graduate Diploma in Montessori Teacher Training">Graduate Diploma in Montessori Teacher Training</option>
								<option value="Post-graduate Diploma in Montessori Teacher Training">Post-graduate Diploma in Montessori Teacher Training</option>
							</select>
						</div>
					</div>

                    <div class="form-group mb-0">
                
                        <!-- Input -->
                        <textarea type="text" name="widget-contact-form-message" required rows="2"
							class="form-control required" id="message" placeholder="Enter your Message"></textarea>
                
                    </div> <!-- / .row -->
                   
                    <div class="form-group mb-0">

                        <button style="background-color: #f7a325;margin:10px 0px;" class="btn btn-sm btn-block lift" type="button" onclick="submitForm()">&nbsp;Send message</button>
                    </div>
                </form>

          </div>
        </div> <!-- / .row -->
      </div> <!-- / .container -->
    </section>
    <script type="text/javascript">
	var option = null;
	var name = null;
	var addr = null;
	var phn = null;
	var subject = null;
	var email = null;
	var message = null;
	var warning = document.getElementById('warning');
	var success = document.getElementById('success');
	var emailError = document.getElementById('emailError');
	var req = document.getElementById("req");
	function setOptions(s) {
		option = s[s.selectedIndex].value;
	}
	function submitForm() {
		name = document.getElementById("name1").value;
		phn = document.getElementById("phn").value;
		addr = document.getElementById("addr").value;
		email = document.getElementById("email").value;
		message = document.getElementById("message").value;
		success.style.display = "none";
		subject = req.options[req.selectedIndex].value;
		 //console.log(name+phn+addr+email+message+subject);
		if (name == '' || addr == '' || phn == '' || email == '' || message == '' || subject == '') {
			warning.style.display = "block";
		} else {
			var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
        	var mobile = /^\d{10}$/;

			if (reg.test(email) == false) {
				emailError.style.display = "block";
			}else if (mobile.test(phn) == false) {
                phnError.style.display = "block";
            } else {
				emailError.style.display = "none";
				warning.style.display = "none";
				let formData = new FormData();
				formData.append('formName', 'IIMTT-Nairobi-Form');
            	formData.append('business_type', 'iimtt');
				formData.append('Name', name);
				formData.append('Email', email);
				formData.append('Phone', phn);
            	formData.append('Field', subject);
				formData.append('Address', addr);
				formData.append('MessageDetails', message + " Course:" + subject);
				fetch('https://api.teenybeans.in/API/contactFormProcessor/v1/', {
					method: 'POST',
					body: formData
				})
					.then(res => res.json())
					.then(json => {
						// console.log(json);
						sendMail("crm@teenybeans.in");
                		sendMail("nairobi@iimtt.org");
						sendWelcomeMail(email);
						success.style.display = "block";
						document.getElementById("name1").value = "";
						document.getElementById("phn").value = "";
						document.getElementById("addr").value = "";
						document.getElementById("email").value = "";
						document.getElementById("message").value = "";
					}
					);
			}

		}
		// if(name)
	}

	function sendMail(sendEmail) {
		// ---------Mail sent-----------------

		let formData = new FormData();
		formData.append("sendMail", "true");
		formData.append("reciever", sendEmail);
		formData.append("sender", "IIMTT");
		formData.append("senderMail", "enquiry@iimtt.org");
		formData.append("subject", "New Contact Form Fillup");
		formData.append(
			"message",
			"<html><body><p>New IIMTT Nairobi Contact form is filled up.</p><br><p>User Details:-</p><table><tr><th>Name:- </th><td>:- " +
			name +
			"</td></tr><tr><th>Email:- </th><td>:- " +
			email +
			"</td></tr><tr><th>Phone:- </th><td>:- " +
			phn +
        	"</td></tr><tr><th>Address:- </th><td>:- " +
			addr +
			"</td></tr><tr><th>Course:- </th><td>:- " +
        	subject +
			"</td></tr><tr><th>Message:- </th><td>:- " +
			message +
			"</td></tr></table></body></html>"
		);
		fetch("https://mailapi.teenybeans.in/009/", {
			method: "POST",
			body: formData
		})
			.then(function (response) {
				response.json().then(function (data) {
					// console.log(data);
				});
			})
			.catch(function (err) {
				console.log("Fetch Error :-S", err);
			});
	}
	function sendWelcomeMail(sendEmail) {
		// ---------Mail sent-----------------
		let formData = new FormData();
		formData.append("sendMail", "true");
		formData.append("reciever", sendEmail);
		formData.append("sender", "IIMTT");
		formData.append("senderMail", "enquiry@iimtt.org");
		formData.append("subject", "Thank you for contacting IIMTT.");
		formData.append(
			"message",'<html><body style="background-color:#f5f8f5;padding:16px;"><div style="text-align:center"><a href="#"><img style="width:150px;" src="https://iimtt.org/assets/img/iimtt-footer-logo.png"></a></div>'+
			'<div><b style="font-size:20px">Hi '+name+'</b><p>Thank you for reaching International Institute of Montessori Teacher Training.</p>'+
			'<p>IIMTT was established to help meet the growing demand for Montessori teachers in India and abroad.Our course equips participants to educate children in the Montessori Method, at the pre-primary level anywhere in the world.</p>'+
			'<p>Our representative will get in touch with you soon!</p></div><div style="text-align:center"><a style="background-color:#f7a325;color:black;padding:4px 6px;text-decoration:none" class="btn btn-secondary btn-form display-4" href="https://drive.google.com/file/d/1fe-h_OKfm3jvi8Ks7cfortDZE2c6rt2i/view">Download Brochure</a></div><p>Thanks<br>Team IIMTT</p>'+
			'<div style="text-align:center"><p><b>Follow us</b><br><a href="https://www.facebook.com/IIMTT/" target="_blank"><img style="width:26px;margin-right:10px" src="https://iimtt.org/assets/img/fb.png" alt="Logo"></a><a href="https://www.instagram.com/iimtt.corporate/" target="_blank"><img style="width:26px;margin-right:10px" src="https://iimtt.org/assets/img/insta.png" alt="Logo"></a><a href="https://twitter.com/iimtt_corporate" target="_blank"><img style="width:26px;margin-right:10px" src="https://iimtt.org/assets/img/tw.png" alt="Logo"></a>'+
        '<a href="https://www.linkedin.com/showcase/international-institute-of-montessori-teacher-training/" target="_blank"><img style="width:30px;" src="https://iimtt.org/assets/img/linkedin.png" alt="Logo"></a><br><hr><b>International Institute of Montessori Teacher Training</b><br>Eldama Ravine Cl, Nairobi, Kenya<br>© 2021 IIMTT All rights reserved.</p></div></body></html>'
		);
		fetch("https://mailapi.teenybeans.in/009/", {
			method: "POST",
			body: formData
		})
			.then(function (response) {
				response.json().then(function (data) {
					console.log(data);
				});
			})
			.catch(function (err) {
				console.log("Fetch Error :-S", err);
			});
	}
</script>
<!-- ****************************************************** -->
 <script type="text/javascript">
	var user = null;
	var contact = null;
	var paymentEmail = null;
 	var city = null;
	var paymentWarning = document.getElementById('paymentWarning');
	var paymentSuccess = document.getElementById('paymentSuccess');
	var paymentEmailError = document.getElementById('paymentEmailError');
	var req = document.getElementById("req");
    var captchaError = document.getElementById('captchaError');
 
	function paymentSubmitForm() {
		user = document.getElementById("user").value;
		contact = document.getElementById("contact").value;
		paymentEmail = document.getElementById("paymentEmail").value;
    	city = document.getElementById('city').value;
		paymentSuccess.style.display = "none";
 	    captchaError.style.display = "none";
  	   
	console.log('all details',user,contact,paymentEmail,city)	
    if (user == '' || contact == '' || paymentEmail == '' || city =='') {
			paymentWarning.style.display = "block";
		} else {
			var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
        	// var mobile = /^\d{10}$/;

			if (reg.test(paymentEmail) == false) {
				paymentEmailError.style.display = "block";
			}else 
            // if (mobile.test(contact) == false) {
            //     contactError.style.display = "block";
            // } else
            {
				paymentEmailError.style.display = "none";
 			    // ✅ Verify reCAPTCHA
		var captchaResponse = grecaptcha.getResponse();
		if (!captchaResponse.length) {
			captchaError.style.display = "block";
			return;
		}
				paymentWarning.style.display = "none";
            
				let formData = new FormData();
				formData.append('formName', 'IIMTT-Nairobi-Post-Graduate-Diploma-Form');
				formData.append('business_type', 'iimtt');
				formData.append('Name', user);
				formData.append('Email', paymentEmail);
				formData.append('Phone', contact);
            	formData.append('Details', city)
            fetch('https://api.teenybeans.in/API/contactFormProcessor/v1/', {
					method: 'POST',
					body: formData
				})
				fetch('https://app.buzzapp.tech/api/payments/createPaymentUrl', {
					method: 'POST',
                headers: {
    accept: 'application.json',
    'Content-Type': 'application/json'
  },
					body: JSON.stringify({
    "amount": "180",
    "productinfo": "Post Graduate Diploma in Montessori Teacher Training",
    "firstname": user,
    "email": paymentEmail,
    "phone": contact,
    "additionalInfo": {
        "orderId": "147ubiebpe"
    },
    "callbackUrl": "https://buzzapp.local/api/one/v1/commerce-payment/updateOrderPaymentCallback",
    "currency": "USD"
})
				})
					.then(res => res.json())
					.then(json => {
                window.open(json.url)
						// console.log(json);
						sendPaymentMail("crm@teenybeans.in");
                		sendPaymentMail("nairobi@iimtt.org");
						sendPaymentWelcomeMail(paymentEmail);
						paymentSuccess.style.display = "block";
						document.getElementById("user").value = "";
						document.getElementById("contact").value = "";
						document.getElementById("paymentEmail").value = "";
                        document.getElementById("city").value = "";
                        grecaptcha.reset(); // reset captcha after submission
					}
					);
			}

		}
		// if(name)
	}
 function sendPaymentMail(sendEmail) {
		let formData = new FormData();
		formData.append("sendMail", "true");
		formData.append("reciever", sendEmail);
		formData.append("sender", "IIMTT");
		formData.append("senderMail", "enquiry@iimtt.org");
		formData.append("subject", "New Contact Form Fillup");
		formData.append(
			"message",
			"<html><body><p>New IIMTT Nairobi Post Graduate Diploma Contact form is filled up.</p><br><p>User Details:-</p><table><tr><th>Name:- </th><td>:- " +
			user +
			"</td></tr><tr><th>Email:- </th><td>:- " +
			paymentEmail +
			"</td></tr><tr><th>Phone:- </th><td>:- " +
			contact +
        	"</td></tr><tr><th>City:- </th><td>:- " +
			city +
        	"</td></tr></table></body></html>"
		);
		fetch("https://mailapi.teenybeans.in/009/", {
			method: "POST",
			body: formData
		})
			.then(function (response) {
				response.json().then(function (data) {
					// console.log(data);
				});
			})
			.catch(function (err) {
				console.log("Fetch Error :-S", err);
			});
	}
 function sendPaymentWelcomeMail(sendEmail) {
		let formData = new FormData();
		formData.append("sendMail", "true");
		formData.append("reciever", sendEmail);
		formData.append("sender", "IIMTT");
		formData.append("senderMail", "enquiry@iimtt.org");
		formData.append("subject", "Thank you for choosing IIMTT Nairobi");
		formData.append(
			"message",'<html><body style="background-color:#f5f8f5;padding:16px;"><div style="text-align:center"><a href="#"><img style="width:150px;" src="https://iimtt.org/assets/img/iimtt-footer-logo.png"></a></div>'+
			'<div><b style="font-size:20px">Hi '+user+'</b><p>Thank you for your interest in taking the Post Graduate Diploma in Montessori Teacher Training from IIMTT Nairobi.</p>'+
			"<p>Whether you've just graduated from school or are seeking a truly inspirational career change, IIMTT offers a range of training opportunities, including internationally recognized UK qualifications to start your journey in Montessori education. </p>"+
			'<p>Our representative will get in touch with you soon!</p><p>In the meantime, you can learn more about the course fees and duration.</p></div><div style="text-align:center"><a style="background-color:#f7a325;color:black;padding:4px 6px;text-decoration:none" class="btn btn-secondary btn-form display-4" href="https://drive.google.com/file/d/11JW1i7annvdjF6rG5vwSFBjIBaMDfAqZ/view?usp=sharing">Download Complete Fees Structure</a></div><p>Thanks<br>Team IIMTT</p>'+
			'<div style="text-align:center"><p><b>Follow us</b><br><a href="https://www.facebook.com/IIMTT/" target="_blank"><img style="width:26px;margin-right:10px" src="https://iimtt.org/assets/img/fb.png" alt="Logo"></a><a href="https://www.instagram.com/iimtt.corporate/" target="_blank"><img style="width:26px;margin-right:10px" src="https://iimtt.org/assets/img/insta.png" alt="Logo"></a><a href="https://twitter.com/iimtt_corporate" target="_blank"><img style="width:26px;margin-right:10px" src="https://iimtt.org/assets/img/tw.png" alt="Logo"></a>'+
        '<a href="https://www.linkedin.com/showcase/international-institute-of-montessori-teacher-training/" target="_blank"><img style="width:30px;" src="https://iimtt.org/assets/img/linkedin.png" alt="Logo"></a><br><hr><b>International Institute of Montessori Teacher Training</b><br>Eldama Ravine Cl, Nairobi, Kenya<br>© 2021 IIMTT All rights reserved.</p></div></body></html>'
		);
		fetch("https://mailapi.teenybeans.in/009/", {
			method: "POST",
			body: formData
		})
			.then(function (response) {
				response.json().then(function (data) {
					console.log(data);
				});
			})
			.catch(function (err) {
				console.log("Fetch Error :-S", err);
			});
	}
</script>
