<!DOCTYPE html>
<html lang="en">
<?php
include('include/header.php');

if (isset($_POST["submit"])) {
    $email = mysqli_real_escape_string($conn, $_POST["email"]);
    $para = mysqli_real_escape_string($conn, $_POST["msg"]);

    $to = "aliqureshi755@gmail.com";
    $subject = "ENQUIRY FROM  WEBSITE";
    $message = 'Email:   ' . $email . "\r\n" .
            'Para:  ' . $para;
    mail($to, $subject, $message);

    header("refresh: 1; contact.php");
}
?>
?>
<!-- Page Header Start -->
<div class="container-fluid bg-dark p-5">
    <div class="row">
        <div class="col-12 text-center">
            <h1 class="display-4 text-white">Contact Us</h1>
            <a href="">Home</a>
            <i class="far fa-square text-primary px-2"></i>
            <a href="">Contact</a>
        </div>
    </div>
</div>
<!-- Page Header End -->


<!-- Contact Start -->
<div class="container-fluid bg-secondary px-0">
    <div class="row g-0">
        <div class="col-lg-6 py-6 px-5">
            <h1 class="display-5 mb-4">Contact For Any Queries</h1>
            <form>
                <div class="row g-3">
                    <div class="col-6">
                        <div class="form-floating">
                            <input type="text" class="form-control" id="form-floating-1" placeholder="John Doe">
                            <label for="form-floating-1">Full Name</label>
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="form-floating">
                            <input type="email" class="form-control" id="form-floating-2" placeholder="name@example.com">
                            <label for="form-floating-2">Email address</label>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="form-floating">
                            <input type="text" class="form-control" id="form-floating-3" placeholder="Subject">
                            <label for="form-floating-3">Subject</label>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="form-floating">
                            <textarea class="form-control" placeholder="Message" id="form-floating-4" style="height: 150px"></textarea>
                            <label for="form-floating-4">Message</label>
                        </div>
                    </div>
                    <div class="col-12">
                        <button class="btn btn-primary w-100 py-3" name="submit" value="submit" type="submit">Submit</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-lg-6 py-6 px-5">
            <h1 class="display-5 mb-4">Contact Info</h1>
            <hr>
            <div class="row">
                <h5 style="text-align: center;">ALL INDIA WATERPROOFING CO.</h5>
            </div>
            <div class="row">
                <p style="text-align: center;text-transform:uppercase;">ESTABLISHED IN 1983 BY MR. SAJAUDDIN SULEMAN GOUR</p>
            </div>
            <div class="row">
                <p style="text-align: center;">HEAD OFFICE - MUMBAI</p>
                <p style="text-align: center;">384, A/4, KAPADIA MANSION,</p>
                <p style="text-align: center;">3RD FLOOR, NEAR NOVELTY CINEMA,</p>
                <p style="text-align: center;">GRANT ROAD,</p>
                <p style="text-align: center;">MUMBAI - 400007</p>
                <h6 style="text-align: center;text-transform:uppercase;">Mr. Sajauddin S Gour - 98201 54491</h6><br>
                <h6 style="text-align: center;text-transform:uppercase;">Mr. Sajjad S Gour - 98333 58754</h6><br>
                <!-- <h6 style="text-align: center;text-transform:uppercase;">Mr. Imran S Gour - 96196 00068</h6><br>
                <h6 style="text-align: center;text-transform:uppercase;">Mr. Zibran S Gour - 99302 27332</h6><br> -->

            </div>
        </div>
    </div>
</div>
<!-- Contact End -->
<?php
include('include/footer.php');
?>

<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square rounded-circle back-to-top"><i class="bi bi-arrow-up"></i></a>


<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>

<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>

</html>