<?php
//get data from form  
$name = $_POST['first_name'];
$last = $_POST['last_name'];
$phone = $_POST['phone'];
$category = $_POST['category'];
$email= $_POST['email'];
$message= $_POST['message'];

$to = "'.$email.'";
$subject = "Mail From website";
$txt ="Name = ". $name." ". $last. "\r\n  Email = " . $email . "\r\n Phone No = " . $phone . "\r\n Category = " . $category . "\r\n Message =" . $message;
$headers = "From: tusharshiwal@talenteq.com" . "\r\n" .
"CC: wuwenping@talenteq.com";
if($email!=NULL){
    mail($to,$subject,$txt,$headers);
}
//redirect
//header("Location:thankyou.html");
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <?php include_once("assets/include/head.php")?>
    
    <style>
        .section-bg {
  background: #f5f8fd;
}

.section-header h3 {
  font-size: 36px;
  color: #413e66;
  text-align: center;
  font-weight: 700;
  position: relative;
  font-family: "Montserrat", sans-serif;
}

.section-header p {
  text-align: center;
  margin: auto;
  font-size: 15px;
  padding-bottom: 60px;
  color: #535074;
  width: 50%;
}

@media (max-width: 767px) {
  .section-header p {
    width: 100%;
  }
}

#services {
  padding: 60px 0 40px 0;
}

#services .box {
  padding: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  
  background: #fff;
  box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
  transition: all 0.3s ease-in-out;
  text-align: center;
}

#services .box:hover {
  transform: scale(1.1);
}

#services .icon {
  margin: 0 auto 15px auto;
  padding-top: 12px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

#services .icon .service-icon {
  font-size: 36px;
  line-height: 1;
}

#services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

#services .title a {
  color: #111;
}

#services .box:hover .title a {
  color: #c59c35;
}
#services .box:hover .title a:hover {
  text-decoration: none;
}
#services .description {
  font-size: 14px;
  line-height: 28px;
  margin-bottom: 0;
  text-align: left;
}
    </style>
</head>
<body>
    <?php include_once("assets/include/header.php")?>
    <!-- section banner started... -->
    <section class="banner swiper">
        <div class="swiper-wrapper">
              <?php 
                 $slider= mysqli_query($con,"SELECT * FROM tbl_slider");
                 while($row=mysqli_fetch_array($slider)){
               ?>
            <div class="swiper-slide">
                <picture>
                    <source media="(max-width:767px)" srcset="<?php path();?>/assets/images/slider-image/<?php echo $row['mphoto']; ?>">
                    <source media="(min-width:768px)" srcset="<?php path();?>/assets/images/slider-image/<?php echo $row['photo']; ?>">
                    <img src="#" alt="banner-img">
                </picture>
            </div>
             <?php } ?>
            <!--<div class="swiper-slide">-->
            <!--    <picture>-->
            <!--        <source media="(max-width:767px)" srcset="<?php path();?>/assets/images/home2.0.webp">-->
            <!--        <source media="(min-width:768px)" srcset="<?php path();?>/assets/images/home2.0.webp">-->
            <!--        <img src="#" alt="banner-img">-->
            <!--    </picture>-->
            <!--</div>-->
            <!--<div class="swiper-slide">-->
            <!--    <picture>-->
            <!--        <source media="(max-width:767px)" srcset="<?php path();?>/assets/images/home3.0.webp">-->
            <!--        <source media="(min-width:768px)" srcset="<?php path();?>/assets/images/home3.0.webp">-->
            <!--        <img src="#" alt="banner-img">-->
            <!--    </picture>-->
            <!--</div>-->
            <!--<div class="swiper-slide">-->
            <!--    <picture>-->
            <!--        <source media="(max-width:767px)" srcset="<?php path();?>/assets/images/home4.0.webp">-->
            <!--        <source media="(min-width:768px)" srcset="<?php path();?>/assets/images/home4.0.webp">-->
            <!--        <img src="#" alt="banner-img">-->
            <!--    </picture>-->
            <!--</div>-->
            <!--<div class="swiper-slide">-->
            <!--    <picture>-->
            <!--        <source media="(max-width:767px)" srcset="<?php path();?>/assets/images/home5.0.webp">-->
            <!--        <source media="(min-width:768px)" srcset="<?php path();?>/assets/images/home5.0.webp">-->
            <!--        <img src="#" alt="banner-img">-->
            <!--    </picture>-->
            <!--</div>-->
        </div>
        <div class="swiper-navigation">
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </section>
    <!-- section banner ended... -->
    <!-- call section started... -->
    <!--<section class="py-30 call">-->
    <!--    <div class="container">-->
    <!--        <div class="row align-items-center">-->
    <!--            <div class="col-sm-4">-->
    <!--                <div class="cta-inner cta-text">-->
    <!--                    <h4>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos possimus labore ipsa nostrum </h4>-->
    <!--                </div>-->
    <!--            </div>-->
    <!--            <div class="col-sm-5">-->
    <!--                <div class="cta-inner cta"> <img src="assets/images/cta-phone-icon.png" alt="">-->
    <!--                    <h3>Get Free Consultation <span>+91-120-345-678</span></h3>-->
    <!--                </div>-->
    <!--            </div>-->
    <!--            <div class="col-sm-3 text-center">-->
    <!--                <a href="tel:" class="btn btn-blue">Call Us Now</a>-->
    <!--            </div>-->
    <!--        </div>-->
    <!--    </div>-->
    <!--</section>-->
    <!-- call section ended... -->
    <!-- category section started... -->
   
    <!-- category section ended... -->
    <!-- about us section started... -->
    <section class="py-60 about_us">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-6">
                    <h2 class="title">About Us</h2>
                    <p>Welcome to Talenteq Technology (India) Private Limited, the hub of innovation illuminating life across numerous homes and industries. Established in 2019, we have anchored ourselves in Greater Noida, Uttar Pradesh, thriving on the spirit of excellence and reliability in the realm of technology manufacturing. Our identity stems from being a committed proprietorship, taking pride in sculpting the future of lighting solutions.</p>
                    <a href="<?php path();?>/about-us.php" class="btn btn-yellow">Read More</a>
                </div>
                <div class="col-md-6"> 
                    <img src="assets/images/About.webp" class="w-100" alt="">
                </div>
            </div>
        </div>
    </section>
    <!-- about us section ended... -->
    <!-- product list section started... -->
   
    <!-- product list section ended... -->
<section class="services section-bg" id="services">
  <div class="container">
    <header class="section-header">
      <h3>Our Products</h3>

      <p>At Talenteq Technology (India) Private Limited, we illuminate spaces, brightening homes and industries alike with our cutting-edge lighting solutions. Born out of a passion for innovation, our range of products stands testament to our commitment towards excellence and quality.</p>
    </header>

    <div class="row">
        <?php
        $result = mysqli_query($con, "SELECT * from tbl_product limit 4");
        while($row = mysqli_fetch_array($result))
        {
            $img = $row['banner'];
            $name = $row['p_name'];
            $short = $row['p_short_description'];
            $pid = $row['p_id'];
            
            // $sql = mysqli_query($con, "SELECT * FROM tbl_product_photo where p_id='$pid'");
            // while($roh = mysqli_fetch_array($sql))
            // {
            //     $img=$roh['photo'];
            // }
        ?>
      <div class="col-md-6 col-lg-3">
        <div class="box">
          
            <img src="assets/images/product/<?php echo $img; ?>" alt="" style="width: 100%;">

          <h4 class="title"><a href="product.php?id=<?php echo $name; ?>"><?php echo $name; ?></a></h4>

          <p class="description"><?php echo $short; ?> </p>
        </div>
      </div>
      <?php
        }
      ?>

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

    <section class="pb-30 py-60 back_fade">
        <div class="container">
            <div class="row">
                <div class="col-md-8 mx-auto text-center mb-5">
                    <h2 class="title">News & Blog</h2>
                    <p class="description text-center">At Talenteq Technology (India) Private Limited, we illuminate spaces, brightening homes and industries alike with our cutting-edge lighting solutions. Born out of a passion for innovation, our range of products stands testament to our commitment towards excellence and quality.</p>
                </div>
            </div>
            <div class="row">
                <?php
                $blog = mysqli_query($con, "SELECT * FROM blogs limit 3");
                while($row = mysqli_fetch_array($blog))
                {
                    $img = $row['banner'];
                    $name = $row['name'];
                    $short_description = $row['short_description'];
                ?>
                <div class="col-sm-4" style="margin-bottom: 30px;">
                    
                    <div class="card" style="box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;">
                        <div class="card-body">
                            <div class="product-box">
                                <div class="product-img">
                                    <img src="assets/images/blog/<?php echo $img; ?>" alt="" style="width: 100%;">
                                </div>
                            </div>
                            <div class="product-content" style="padding: 10px;">
                                <h4 class="title"><?php echo $name; ?></h4>
                                <p><?php echo $short_description; ?></p>
                                <!--<a href="<?php path();?>/ip-20.php" class="btn btn-yellow">Read More</a>-->
                                <a href="<?php path();?>/blogs/<?php echo $row['slug'];?>">Read More ></a>
                           </div>
                        </div>
                    </div>
                    
                </div>
                <?php
                }
                ?>
            </div>
        </div>
    </section>
    <!-- testimonial section started... -->
    <section class="py-60 how_works">
        <div class="container">
            <div class="row">
                <div class="col-md-8 mx-auto text-center mb-5">
                    <h2 class="title">What client says</h2>
                    </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="testimonial-slider swiper">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide">
                                <div class="feed_box">
                                    <div class="client-rating mb-3">
                                        <i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>
                                    </div>
                                    <p>From design to installation, the process was seamless, professional, and the end result exceeded our expectations. The lights have accentuated our ...</p>
                                    <div class="aut_detail">
                                        <h6>Ahmed Aloul</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="feed_box">
                                    <div class="client-rating mb-3">
                                        <i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>
                                    </div>
                                    <p>Extremely friendly low pressure sales and delivered everything they promised. Yard looks great!! Couldn't be happier. We are so happy that we are ...</p>
                                    <div class="aut_detail">
                                        <h6>Neil Parson</h6>
                                    </div>
                                </div>
                            </div>
                            <div class="swiper-slide">
                                <div class="feed_box">
                                    <div class="client-rating mb-3">
                                        <i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>
                                    </div>
                                    <p>These floodlights are awesome and of a very robuust build. We live on the coast and is standing up well to the weather. Very bright and lights up out front of our garage like day. Highly recommended and well worth the money spent.</p>
                                    <div class="aut_detail">
                                        <h6>Ahmed Aloul</h6>
                                    </div>
                                </div>
                            </div>
                             <div class="swiper-slide">
                                <div class="feed_box">
                                    <div class="client-rating mb-3">
                                        <i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>
                                    </div>
                                    <p>Just received and installed the first light as a trial. I have tried other lights from different manufacturers and was quite disappointed. This light however is very robust! The mounting bracket is solid and doesn't have any sag. The 1 metre cable made installation easier and safer. Very impressed, and will be ordering another five for my tennis court along with the 100 watt for the adjoining playground.</p>
                                    <div class="aut_detail">
                                        <h6>Shivam Gupta</h6>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-pagination"></div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- testimonial section ended... -->
    <!-- contact us section started... -->
    <section class="py-60 contact_home">
        <div class="container">
            <div class="row">
                <div class="col-md-6 mx-auto"></div>
                <div class="col-md-6 mx-auto">
                    <div class="contact-box">
                        <h3 class="title mb-4 text-center text-white">Get in Touch</h3>
                        <form action="" method="post">
                            <div class="form-row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="name">First Name</label>
                                        <input type="text" class="form-control" name="first_name" id="name" placeholder="First Name*">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="name">Last Name</label>
                                        <input type="text" class="form-control" name="last_name" id="name" placeholder="Last Name*">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="email">Email</label>
                                        <input type="text" class="form-control" name="email" id="email" placeholder="Email*">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="phone">Phone Number</label>
                                        <input type="number" name="phone" class="form-control" id="phone" placeholder="Phone Number*">
                                    </div>
                                </div>
                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <label for="email">Select Product Category*</label>
                                        <select name="category" id="" class="form-control">
                                            
                                            <option value="" selected disabled>Select Product*</option>
                                            <?php
                                $product = mysqli_query($con, "SELECT * FROM tbl_product");
                                while($row = mysqli_fetch_array($product))
                                {
                                    $pro = $row['p_name'];
                                ?>
                                <option value="<?php echo $pro; ?>" style="color: #000;"><?php echo $pro; ?></option>
                                <?php
                                }
                                ?>
                                        </select>
                                    </div>
                                </div>
                                <!--<div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="email">Select Product*</label>
                                        <select name="" id="" class="form-control">
                                            <option value="0" selected disabled>Select Product*</option>
                                        </select>
                                    </div>
                                </div>-->
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="message">Your Message</label>
                                        <textarea name="messafe" id="" cols="30" rows="5" class="form-control" placeholder="Your Message*"></textarea>
                                    </div>
                                </div>
                                <button class="btn btn-yellow w-100" type="submit" name="submit">Submit Now</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- contact us section ended... -->
    <!-- application section started... -->
    <!--<section class="py-60">-->
    <!--    <div class="container">-->
            
            <!--<div class="row">
                <div class="col-md-12">
                    <ul class="nav nav-tabs justify-content-center" id="myTab" role="tablist">
                        <li class="nav-item" role="presentation">
                            <button class="nav-link active" id="home-tab" data-toggle="tab" data-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">Asymmetric Optics</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="profile-tab" data-toggle="tab" data-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="false">Symmetric Optics</button>
                        </li>
                        <li class="nav-item" role="presentation">
                            <button class="nav-link" id="contact-tab" data-toggle="tab" data-target="#contact" type="button" role="tab" aria-controls="contact" aria-selected="false">RGBW Color</button>
                        </li>
                    </ul>
                    <div class="tab-content pt-3" id="myTabContent">
                        <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                            <div class="row">
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-1.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-2.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-3.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-4.png" alt="" class="w-100 mb-4"></div>
                            </div>
                        </div>
                        <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
                            <div class="row">
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-5.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-6.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-7.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-8.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3 ml-auto"><img src="assets/images/showlist-9.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3 mr-auto"><img src="assets/images/showlist-10.png" alt="" class="w-100 mb-4"></div>
                            </div>
                        </div>
                        <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">
                            <div class="row">
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-11.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-12.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-13.png" alt="" class="w-100 mb-4"></div>
                                <div class="col-sm-6 col-md-3"><img src="assets/images/showlist-14.png" alt="" class="w-100 mb-4"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>  -->
            
            <!--<div class="row">-->
            <!--    <div class="col-md-12 text-center">-->
            <!--        <h2 class="title">Our Client</h2>-->
            <!--    </div>-->
            <!--</div>-->
            
            
            <!--<div class="row">-->
            <!--    <?php-->
            <!--    $client = mysqli_query($con, "SELECT * FROM tbl_client");-->
            <!--    while($roe = mysqli_fetch_array($client))-->
            <!--    {-->
            <!--        $img = $roe['photo'];-->
            <!--    ?>-->
            <!--    <div class="col-md">-->
            <!--        <div class="card">-->
            <!--            <div class="card-body">-->
            <!--                <center>-->
            <!--                    <img src="assets/images/client/<?php echo $img; ?>">-->
            <!--                </center>-->
            <!--            </div>-->
            <!--        </div>-->
            <!--    </div>-->
            <!--    <?php-->
            <!--    }-->
            <!--    ?>-->
            <!--</div>-->
            
    <!--    </div>-->
    <!--</section>-->
    <!-- application section ended... -->
    <?php include_once("assets/include/footer.php")?>
</body>
</html>