<?php
include('includes/dbconnection.php');
session_start();
error_reporting(0);

if(isset($_POST['sub']))
  {
   
    $email=$_POST['email'];

     
    $query=mysqli_query($con, "insert into tblsubscriber(Email) value('$email')");
    if ($query) {
   echo "<script>alert('Your subscribe successfully!.');</script>";
echo "<script>window.location.href ='index.php'</script>";
  }
  else
    {
       echo '<script>alert("Something Went Wrong. Please try again")</script>';
    }

  
}
  ?>
<link rel="stylesheet" href="assets/css/footer-new.css">
<footer class="footer">
        <!-- Newsletter Section -->
        <div class="footer__newsletter">
            <div class="container">
                <div class="footer__newsletter-content">
                    <div class="footer__newsletter-text">
                        <h3>Stay Updated with Latest Deals</h3>
                        <p>Subscribe to our newsletter and be the first to know about new products and exclusive offers</p>
                    </div>
                    <form action="#" class="footer__newsletter-form" method="post">
                        <div class="footer__form-group">
                            <input type="email" name="email" placeholder="Enter your email address" required>
                            <button type="submit" name="sub" class="btn btn--primary">Subscribe</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <!-- Main Footer Content -->
        <div class="footer__main">
            <div class="container">
                <div class="footer__grid">
                    <!-- Company Info Column -->
                    <div class="footer__column--about">
                        <div class="footer__widget">
                            <div class="footer__logo">
                                <a href="index.php" class="footer__logo-link">
                                    <i class="fas fa-mobile-alt"></i>
                                    <span>PhoneBazaar</span>
                                </a>
                            </div>
                            <p class="footer__description">
                                Your trusted destination for the latest mobile phones and accessories. We offer genuine products with warranty and excellent customer service.
                            </p>
                            <div class="footer__contact-info">
                                <div class="footer__contact-item">
                                    <i class="fas fa-map-pin"></i>
                                    <span>Domkal (Bablabona Market), Murshidabad, West Bengal, India</span>
                                </div>
                                <div class="footer__contact-item">
                                    <i class="fas fa-phone"></i>
                                    <span>8001190119</span>
                                </div>
                                <div class="footer__contact-item">
                                    <i class="fas fa-envelope"></i>
                                    <span>phonebazaar.dm@gmail.com</span>
                                </div>
                                <div class="footer__contact-item">
                                    <i class="fas fa-clock"></i>
                                    <span>Mon-Sat: 10AM-8PM</span>
                                </div>
                            </div>
                        </div>
                        
                    </div>

                    <!-- Why Choose Us Column -->
                    <div class="footer__column--links">
                        <div class="footer__widget">
                            <h4 class="footer__widget-title">Why Choose Us</h4>
                            <ul class="footer__links">
                                <li><a href="#"><i class="fas fa-check-circle"></i> 100% Genuine Products</a></li>
                                <li><a href="#"><i class="fas fa-check-circle"></i> Manufacturer Warranty</a></li>
                                <li><a href="#"><i class="fas fa-check-circle"></i> Fast Delivery</a></li>
                                <li><a href="#"><i class="fas fa-check-circle"></i> Easy Returns</a></li>
                                <li><a href="#"><i class="fas fa-check-circle"></i> Secure Payment</a></li>
                                <li><a href="#"><i class="fas fa-check-circle"></i> 24/7 Customer Support</a></li>
                            </ul>
                        </div>
                    </div>


                    <!-- Social & Payment Column -->
                    <div class="footer__column--social">
                        <div class="footer__widget">
                            <h4 class="footer__widget-title">Follow Us</h4>
                            <div class="footer__social">
                                <a href="https://www.facebook.com/share/1AGMYw2gvv/" class="footer__social-link facebook" aria-label="Facebook" target="_blank">
                                    <i class="fab fa-facebook-f"></i>
                                </a>
                                <a href="https://www.instagram.com/phonebazaar2024?igsh=aDVubDFpdXg2a3Ew" class="footer__social-link instagram" aria-label="Instagram" target="_blank">
                                    <i class="fab fa-instagram"></i>
                                </a>
                                <a href="https://youtube.com/@phonebazaar2024?si=e8Vi83I8eRifoFue" class="footer__social-link youtube" aria-label="YouTube" target="_blank">
                                    <i class="fab fa-youtube"></i>
                                </a>
                                <a href="https://wa.me/8001190119" class="footer__social-link whatsapp" aria-label="WhatsApp" target="_blank">
                                    <i class="fab fa-whatsapp"></i>
                                </a>
                            </div>
                        </div>

                        <div class="footer__widget footer__payment">
                            <h4 class="footer__widget-title">Payment Methods</h4>
                            <div class="footer__payment-icons">
                                <img src="assets/img/payment/visa.svg" alt="Visa" title="Visa">
                                <img src="assets/img/payment/mastercard.svg" alt="Mastercard" title="Mastercard">
                                <img src="assets/img/payment/rupay.svg" alt="RuPay" title="RuPay">
                                <img src="assets/img/payment/upi.svg" alt="UPI" title="UPI">
                                <img src="assets/img/payment/paytm.svg" alt="Paytm" title="Paytm">
                                <img src="assets/img/payment/gpay.svg" alt="Google Pay" title="Google Pay">
                                <img src="assets/img/payment/phonepe.svg" alt="PhonePe" title="PhonePe">
                                <img src="assets/img/payment/bhim.svg" alt="BHIM" title="BHIM">
                            </div>
                        </div>

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

        <!-- Footer Bottom -->
        <div class="footer__bottom">
            <div class="container">
                <div class="footer__bottom-content">
                    <div class="footer__copyright">
                        <p>&copy; <?php echo date('Y'); ?> Phone Bazaar Management System. All rights reserved.</p>
                    </div>
                    <div class="footer__certifications">
                        <span class="footer__certified">Secure Shopping</span>
                        <span class="footer__certified">Authentic Products</span>
                        <span class="footer__certified">Fast Delivery</span>
                        <span class="footer__certified">24/7 Support</span>
                        <span class="footer__certified">Easy Returns</span>
                        <span class="footer__certified">100% Genuine</span>
                    </div>
                </div>
            </div>
        </div>
    </footer> <!-- ::::::  End  Footer Section  ::::::  -->

    <!-- material-scrolltop button -->
    <button class="material-scrolltop" type="button"></button>

   
