<!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>Hiring || 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>
    .gh{
    background-image: url(assets/img/section-img/security/security-bg-3.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--main-color-one);
    padding: 45px;
    }
</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\Exception;

if (isset($_POST['inquiry'])) {
    $name    = $_POST['name'];
    $email   = $_POST['email'];
    $phone   = $_POST['phone'];
    $message = $_POST['message'];

    // File upload
    $resume_path = null;
    if (!empty($_FILES['file']['name'])) {
        $target_dir = "resumes/";
        if (!is_dir($target_dir)) {
            mkdir($target_dir, 0777, true);
        }
        $file_name = basename($_FILES["file"]["name"]);
        $target_file = $target_dir . $file_name;

        if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
            $resume_path = $target_file;
        }
    }

    // Insert into DB
    $query = "INSERT INTO hiring_applications (name, email, phone, resume_path, message) 
              VALUES ('$name', '$email', '$phone', '$resume_path', '$message')";
    $Result = mysqli_query($conn, $query);

    // Send email
    require 'vendor/autoload.php';
    $mail = new PHPMailer(true);
    try {
        $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 = 'Hiring Application Received';
        $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>
          <font>Regards,<br>Sai Protection Group</font><br><br>
          
        </fieldset>';

        $mail->send();

        echo "<script>
            Swal.fire({
                title: 'Success',
                text: 'Application submitted successfully',
                icon: 'success',
                confirmButtonText: 'OK'
            }).then(() => {
                window.location.href = 'hiring.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 = 'hiring.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">HIRING</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="#">HIRING</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">Join Our Elite Security Team</h3>
                <p>We are looking for skilled and dedicated professionals to join our growing security force. Whether you’re an experienced guard, ex-serviceman, or new to the field, we offer training, growth opportunities, and a chance to serve with pride.</p>
            </div>
            <div class="row">
            <div class="col-lg-6 col-12 gh" >
                
                <h3 style="color:#fff;margin-bottom:40px;" >Terms & Condition</h3>
                <ol>
                    <li style="color:#fff;">Age Of The Candidates Should Be In Between 18 Years To 40 Years. </li>
                    <li style="color:#fff;"> Minimum Educational Qualificationshould Be 10th Pass In Case Of Security Guard,
12 Pass In Case Of Security Supervisor And Graduate In Case Of Security Officer.</li>
                    <li style="color:#fff;">He Should Be Fit For Physically And Mentally.</li>
                    <li style="color:#fff;">Minimum Weight Should Be 60 Kg.</li>
                    <li style="color:#fff;">Minimum Height Of The Candidates Should Be 5ft 6 Inch.</li>
                </ol>
                
            </div>
            <div class="quote-form col-lg-6 col-12" style="background: #f2f2f2;" >
                <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>
                    <h3 style="margin-bottom:40px;">Apply Now</h3>
                    <form method="post" enctype="multipart/form-data">
                        <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="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">
                                        <input type="file" name="file" style="padding: 13px 20px;" >
                                    </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> Submit Data
                                            <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>