<!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>Inquiry || 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>

<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['inquiry'])) {

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

    $query = "INSERT INTO quotes (name, email, phone, service, message, created_at) VALUES ('$name', '$email', '$phone', '$service', '$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 = 'Inquiry Through Mail';
        $mail->Body    = '<fieldset>
          <legend><h4>Thank you for connecting with Sai Protection Group Clean Energy For A Bright Future. As someone receptive to networking, we look forward to building a solid business relationship with you. We will revert within 30 minutes, or you can connect quickly at +91 9527259770</h4></legend>
          <font>Email Address: ' . $email . '</font><br><br>
          
        </fieldset>';

        $mail->send();

        echo "<script>
                Swal.fire({
                    title: 'Success',
                    text: 'Inquiry received successfully',
                    icon: 'success',
                    confirmButtonText: 'OK'
                }).then(() => {
                    window.location.href = 'inquiry.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 = 'inquiry.php';
                });
              </script>";
    }
}

?>
    
    <!-- breadcrumb area  -->
    <div class="breadcrumb-area margin-bottom-120">
        <div class="container custom-container">
            <div class="breadcrumb-inner">
                <h2 class="br-inner-title">INQUIRY</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="#">INQUIRY</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- breadcrumb area end -->


    <div class="getquote-area margin-bottom-120">
        <div class="container">
            <div class="theme-heading-title team-page text-center">
                <h3 class="title">Request a free quotes</h3>
                <p>Looking for reliable security and allied services? Our team will assess your requirements and provide a customized plan to suit your needs—completely free of charge. Get in touch today and secure peace of mind.</p>
            </div>
            <div class="quote-form">
                <div role="form" class="wpcf7" id="wpcf7-f2184-p6057-o1" lang="en-US" dir="ltr">
                    <div class="screen-reader-response">
                        <p role="status" aria-live="polite" aria-atomic="true"></p>
                        <ul></ul>
                    </div>
                    <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*" class="">
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="single-input-inner style-border">
                                        <input type="text" name="company_name" placeholder="Company 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="Your Phone*">
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="single-input-inner style-border">
                                        <select name="service" >
                                            <option value="">Select Services</option>
                                            <option value="Security Guards">Security Guards</option>
                                            <option value="Bodyguard Security">Bodyguard Security</option>
                                            <option value="Gunmen Guards">Gunmen Guards</option>
                                            <option value="Bouncers Security">Bouncers Security</option>
                                            <option value="Ex-Servicemen Guards">Ex-Servicemen Guards</option>
                                            <option value="Personal Security Officers (PSO)">Personal Security Officers (PSO)</option>
                                            <option value="Event Security">Event Security</option>
                                            <option value="Film Set Protection">Film Set Protection</option>
                                            <option value="Industrial, Corporate & Residential Security">Industrial, Corporate & Residential Security</option>
                                            <option value="Lady Guards">Lady Guards</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <div class="single-input-inner style-border">
                                        <textarea placeholder="Write messgae*" name="message" ></textarea>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <div class="btn-wrap text-center">
                                        <button class="btn-panthar btn-border-base panthar-color-text" type="submit" name="inquiry" >
                                            <span class="top_left"></span>
                                            <span class="top_right"></span>
                                            <i class="fas fa-paper-plane"></i> REQUEST A QUOTES
                                            <span class="bottom_left"></span>
                                            <span class="bottom_right"></span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </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>