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

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Contact || Sai Protection Group</title>
    <meta name="title" content="Sai Protection Group | Professional Security Guard Services in India">
    <meta name="description" content="Sai Protection Group offers professional security guard services including industrial, corporate, residential, film set and event security. Trusted protection with trained and reliable security personnel across India.">
    <meta name="keywords" content="Sai Protection Group, security guard services, event security, industrial security, residential security, corporate security, film set security, private security agency, professional security guards, trained security personnel, safety and protection, 24x7 security services, security solutions India, security company Pune, armed security, unarmed security, commando security services">

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://saiprotectiongroup.in/">
    <meta property="og:title" content="Sai Protection Group | Professional Security Guard Services in India">
    <meta property="og:description" content="Trusted security guard services for corporate, residential, industrial, events and film sets. Sai Protection Group ensures safety with trained and reliable personnel.">
    <meta property="og:image" content="https://saiprotectiongroup.in/images/2.jpeg">

    <!-- Twitter -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="https://saiprotectiongroup.in/">
    <meta name="twitter:title" content="Sai Protection Group | Professional Security Guard Services in India">
    <meta name="twitter:description" content="Reliable and professional security guard services for industries, corporates, residential societies, film sets and events across India.">
    <meta name="twitter:image" content="https://saiprotectiongroup.in/images/2.jpeg">

    <!-- Additional SEO Tags -->
    <meta name="robots" content="index, follow">
    <meta name="author" content="Sai Protection Group">
    <!-- favicon -->
    <link rel="icon" href="sglogo.png" sizes="20x20" type="image/png" />
    <!-- animate -->
    <link rel="stylesheet" href="assets/css/animate.css" />
    <!-- bootstrap -->
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
    <!-- magnific popup -->
    <link rel="stylesheet" href="assets/css/magnific-popup.css" />
    <!-- owl carousel -->
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css" />
    <!-- Nice Select -->
    <link rel="stylesheet" href="assets/css/nice-select.css">
    <!-- Slick Slider -->
    <link rel="stylesheet" href="assets/css/slick.css">
    <!-- fontawesome -->
    <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
    <!-- iconmoon -->
    <link rel="stylesheet" href="assets/css/icomoon.css">
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="assets/css/style.css" />
    <!-- Responsive -->
    <link rel="stylesheet" href="assets/css/responsive.css" />
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    
    <meta name="google-site-verification" content="S-DIIrPbNhW02Np2wGU6Mr3WriflOuYagNn2w8_E888" />
    <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JGG73GQJ68"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-JGG73GQJ68');
</script>
    
</head>

<style>
    .intro-icon-box-3 .content .count-value {
    margin-top: 10px;
}
.intro-icon-box-3 {
    height: 200px;
}
.intro-icon-box-3 .content .count-value {
    font-size: 20px;
}
</style>

<body>

    <div class="body-overlay" id="body-overlay"></div>

    <?php
    include "header1.php";
    ?>
    
<?php

include "db.php";

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

date_default_timezone_set('Asia/Kolkata');

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

    $name = $_POST['name'];
    $email = $_POST['email'];
    $phone = $_POST['phone'];
    $subject = $_POST['subject'];
    $message = $_POST['message'];
    $created_at = date("Y-m-d H:i:s");

    $query = "INSERT INTO contact (name, email, phone, subject, message, created_at) VALUES ('$name', '$email', '$phone', '$subject', '$message', '$created_at')";
    $Result = mysqli_query($conn, $query);

    require 'vendor/autoload.php';

    $mail = new PHPMailer(true);
    try {
        $mail->SMTPDebug = 0;
        $mail->isSMTP();
        $mail->Host       = 'smtp.gmail.com';
        $mail->SMTPAuth   = true;
        $mail->Username   = 'saiprotection2022@gmail.com';
        $mail->Password   = 'uucrobjhpqnilvyt';
        $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
        $mail->Port       = 587;

        $mail->setFrom('saiprotection2022@gmail.com', 'Sai Protection Group');
        $mail->addAddress($email);

        $mail->isHTML(true);
        $mail->Subject = 'Contact Through Mail';
        $mail->Body    = '<fieldset>
          <legend><h4>Thank you for connecting with <strong>Sai Protection Group</strong> – Securing People, Property & Peace of Mind. We appreciate your interest in our security guard services and look forward to building a strong business relationship with you. Our team will respond within 30 minutes, or you can connect with us directly at <a href="tel:+919527259770">+91 9527259770</a>.</h4></legend>
          <font>Email Address: ' . $email . '</font><br><br>
        </fieldset>';

        $mail->send();

        echo "<script>
                Swal.fire({
                    title: 'Success',
                    text: 'Contact received successfully',
                    icon: 'success',
                    confirmButtonText: 'OK'
                }).then(() => {
                    window.location.href = 'contact.php';
                });
              </script>";
    } catch (Exception $e) {
        echo "<script>
                Swal.fire({
                    title: 'Error',
                    text: 'Message could not be sent. Mailer Error: {$mail->ErrorInfo}',
                    icon: 'error',
                    confirmButtonText: 'OK'
                }).then(() => {
                    window.location.href = 'contact.php';
                });
              </script>";
    }
}

?>

    <!-- breadcrumb area  -->
    <div class="breadcrumb-area">
        <div class="container custom-container">
            <div class="breadcrumb-inner">
                <h2 class="br-inner-title">Contact us</h2>
                <ul class="breadcrumb-menu">
                    <li><img class="bullet-04" src="./assets/img/section-img/breadcrumb/home.svg" alt=""><a
                            href="#">home</a></li>
                    <li><img class="bullet-03" src="./assets/img/shapes/bullet.png" alt=""><a href="#">Contact us</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- breadcrumb area end -->

    <div class="contact-area padding-top-120 padding-bottom-120">
        <div class="container">
            <div class="row">
                <div class="col-lg-4">
                    <div class="intro-icon-box-3 icon-box-item top">
                        <div class="icon-wrap">
                            <div class="icon">
                                <i aria-hidden="true" class="icomoon icomoon-phone"></i> </div>
                        </div>
                        <div class="content">
                            <a class="icon-box-anchor">
                                <h3 class="title">Phone</h3>
                            </a>
                            <h4 class="count-value ">Ulhas Patil : <a href="tel:+917573032122">+91 7573032122</a></h4>
                            <h4 class="count-value ">Dilip patil : <a href="tel:+917573032133">+91 7573032133</a></h4>
                            <h4 class="count-value ">Vishal Patil : <a href="tel:+919099050308">+91 8268111701</a></h4>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="intro-icon-box-3 icon-box-item top">
                        <div class="icon-wrap">
                            <div class="icon">
                                <i aria-hidden="true" class="icomoon icomoon-mail-2"></i></div>
                        </div>
                        <div class="content">
                            <a class="icon-box-anchor">
                                <h3 class="title">Email</h3>
                            </a>
                            <h4 class="count-value "><a href="mailto:saiprotection2022@gmail.com">saiprotection2022@gmail.com</a></h4>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="intro-icon-box-3 icon-box-item top">
                        <div class="icon-wrap">
                        <div class="icon">
                                <i aria-hidden="true" class="fas fa-map-marker-alt"></i> </div>
                        </div>
                        <div class="content">
                            <a class="icon-box-anchor">
                                <h3 class="title">Location</h3>
                            </a>
                            <h4 class="count-value ">Near Primary School Dhokawade, Alibag, Raigad Maharashtra 402201.<i class="icomoon-top-right-arrow"></i></h4>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="contact-map contact-section padding-top-120 padding-bottom-120">
        <div class="container">
            <div class="theme-heading-title team-page text-center">
                <h3 class="title">Fill up the form if you have any question</h3>
            </div>
            <div class="row">
                <div class="col-lg-6">
                    <div class="google-map">
                        <div class="google-map contact-map">
                            <div class="mapbox"></div>
                            <iframe class="w-100" height="445"
                                src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d967124.9000601504!2d72.72155758654414!3d18.76105575931234!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x75aae3e31e29f91%3A0xe7b66218c3ee412b!2sSAI%20PROTECTION%20GROUP!5e0!3m2!1sen!2sin!4v1755001127065!5m2!1sen!2sin"></iframe>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="contact-page-form-two">
                        <form method="post">
                            <div class="contact-info-inner">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="single-input-inner style-border">
                                            <input type="text" name="name" placeholder="Your Name*">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="single-input-inner style-border">
                                            <input type="text" name="email" placeholder="Your email*">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="single-input-inner style-border">
                                            <input type="text" name="phone" placeholder="Phone*">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="single-input-inner style-border">
                                            <input type="text" name="subject" placeholder="Subject">
                                        </div>
                                    </div>
                                    <div class="col-12">
                                        <div class="single-input-inner style-border">
                                            <textarea placeholder="Write messgae*" name="message" class=""></textarea>
                                        </div>
                                    </div>
                                    <div class="col-12">
                                        <div class="btn-wrap">
                                            <button class="btn-panthar btn-border-base panthar-color-text" name="contact" type="submit" >
                                                <span class="top_left"></span>
                                                <span class="top_right"></span>
                                                SEND NOW
                                                <span class="bottom_left"></span>
                                                <span class="bottom_right"></span>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- footer area start -->
    <?php
    include "footer.php";
    ?>
    <!-- footer area end -->

    <!-- back to top area start -->
    <div class="back-to-top">
        <span class="back-top"><i class="fa fa-angle-up"></i></span>
    </div>
    <!-- back to top area end -->
    <script src="assets/js/jquery-3.6.0.min.js"></script>
    <!-- bootstrap -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- magnific popup -->
    <script src="assets/js/jquery.magnific-popup.js"></script>
    <!-- wow -->
    <script src="assets/js/wow.min.js"></script>
    <!-- owl carousel -->
    <script src="assets/js/owl.carousel.min.js"></script>
    <!-- Nice Select -->
    <script src="assets/js/jquery.nice-select.js"></script>
    <!-- Slick Slider -->
    <script src="assets/js/slick.min.js"></script>
    <!-- isotop -->
    <script src="assets/js/isotope.pkgd.min.js"></script>
    <!-- isotop image load -->
    <script src="assets/js/imagesloaded.pkgd.min.js"></script>
    <!-- isotop image load -->
    <script src="assets/js/jQuery.Progressbar.js"></script>
    <!-- countdown -->
    <script src="assets/js/jquery.countdown.min.js"></script>
    <!-- main js -->
    <script src="assets/js/main.js"></script>
</body>

</html>