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

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Admin : Add B2B Vendor</title>
    <?php include("headerlink.php")?>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">
        <!-- Preloader -->
        <div class="preloader flex-column justify-content-center align-items-center">
            <img class="animation__shake" src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
        </div>

        <?php include("navbar.php")?>


        <?php include("sidebar.php")?>
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1 class="m-0 fw-bold text-uppercase">Add B2B Vendors</h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="#">Home</a></li>
                                <li class="breadcrumb-item active">B2B Vendors</li>
                                <li class="breadcrumb-item active">Add New</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>

            <section class="content">
                <div class="container-fluid">
                    <div class="row">

                        <div class="col-md-12">

                            <div class="card card-primary">
                                <div class="card-header" style="background: #343a40; ">
                                    <h3 class="card-title text-uppercase fw-bold">Add New</h3>
                                </div>

                                <form action="add_vendor_code.php" method="POST">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputPerson">Profile</label>
                                                    <input type="text" name="profile" class="form-control"
                                                        id="exampleInputPerson" placeholder="Profile">
                                                </div>
                                            </div>
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputPerson">Contact Person</label>
                                                    <input type="text" name="contact_person" class="form-control"
                                                        id="exampleInputPerson" placeholder="Contact Person">
                                                </div>
                                            </div>
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputDesignation">Designation</label>
                                                    <input type="text" name="designation" class="form-control"
                                                        id="exampleInputDesignation" placeholder="Designation">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">

                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputNumber">Contact Number</label>
                                                    <!-- <input type="number" name="contact_number1" class="form-control"
                                                        id="exampleInputNumber" placeholder="Contact Number"> -->
                                                    <input type="text" class="form-control" id="exampleInputName"
                                                        placeholder="Contact Number" name="contact_number1"
                                                        oninput="this.value = this.value.replace(/[^0-9]/g, '');">
                                                </div>
                                            </div>

                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail">Contact Email</label>
                                                    <input type="email" name="contact_email1" class="form-control"
                                                        id="exampleInputEmail" placeholder="Contact Email">
                                                </div>
                                            </div>
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputWebsite">Company Website</label>
                                                    <input type="text" name="company_website1" class="form-control"
                                                        id="exampleInputWebsite" placeholder="Company Website">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputNumber">Contact Number 2</label>
                                                    <!-- <input type="number" name="contact_number2" class="form-control"
                                                        id="exampleInputNumber" placeholder="Contact Number"> -->
                                                    <input type="text" class="form-control" id="exampleInputName"
                                                        placeholder="Contact Number" name="contact_number2"
                                                        oninput="this.value = this.value.replace(/[^0-9]/g, '');">
                                                </div>
                                            </div>
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail">Contact Email 2</label>
                                                    <input type="email" name="contact_email2" class="form-control"
                                                        id="exampleInputEmail" placeholder="Contact Email">
                                                </div>
                                            </div>
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputWebsite">Company Website 2</label>
                                                    <input type="text" name="company_website2" class="form-control"
                                                        id="exampleInputWebsite" placeholder="Company Website">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-lg-5 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputCompany">Company Name</label>
                                                    <input type="text" name="company_name" class="form-control"
                                                        id="exampleInputCompany" placeholder="Company Name">
                                                </div>
                                            </div>
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputDesignation">Linkedin Page</label>
                                                    <div class="input-group mb-3">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text"><i
                                                                    class="fab fa-linkedin"></i></span>
                                                        </div>

                                                        <input type="text" class="form-control" name="linkedin_page"
                                                            placeholder="Linkedin Page">
                                                        <input type="hidden" name="linkedin"
                                                            value="https://www.linkedin.com/in/">

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

                                            <div class="col-lg-4 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputDesignation">GMB Page</label>
                                                    <div class="input-group mb-3">
                                                        <div class="input-group-prepend">
                                                            <span class="input-group-text"><i
                                                                    class="fab fa-google"></i></span>
                                                        </div>
                                                        <input type="text" name="gmb_page_username" class="form-control"
                                                            placeholder="GMB Page Username">
                                                        <input type="hidden" name="gmb_page"
                                                            value="https://www.google.com/">
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputCompany">GSTIN</label>
                                                    <input type="text" name="gstin" class="form-control"
                                                        id="exampleInputCompany" placeholder="027AWWFV0388BH1EN">
                                                </div>
                                            </div>
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputNumber">Street Address</label>
                                                    <input type="text" name="address" class="form-control"
                                                        id="exampleInputNumber" placeholder="Street Address">
                                                </div>
                                            </div>
                                            <div class="col-lg-2 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail">City</label>
                                                    <input type="text" name="city" class="form-control"
                                                        id="exampleInputEmail" placeholder="City">
                                                </div>
                                            </div>
                                            <div class="col-lg-2 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputWebsite">State</label>
                                                    <input type="text" name="state" class="form-control"
                                                        id="exampleInputWebsite" placeholder="State">
                                                </div>
                                            </div>
                                            <div class="col-lg-2 col-sm-12">
                                                <div class="form-group">
                                                    <label for="exampleInputWebsite">Zip Code</label>
                                                    <!-- <input type="number" name="zipcode" class="form-control"
                                                        id="exampleInputWebsite" placeholder="Zip Code"> -->
                                                    <input type="text" class="form-control" id="exampleInputName"
                                                        name="zipcode"
                                                        oninput="this.value = this.value.replace(/[^0-9]/g, '');">
                                                </div>
                                            </div>
                                        </div>
                                        <label for="exampleInputEmail1">Socail Handels</label>

                                        <div class="row">
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="input-group mb-3">
                                                    <div class="input-group-prepend">
                                                        <span class="input-group-text"><i
                                                                class="fab fa-facebook"></i></span>
                                                    </div>
                                                    <input type="text" name="facebook_username" class="form-control"
                                                        placeholder="Facebook Username" required>
                                                    <input type="hidden" name="facebook"
                                                        value="https://www.facebook.com/">
                                                </div>
                                            </div>
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="input-group mb-3">
                                                    <div class="input-group-prepend">
                                                        <span class="input-group-text"><i
                                                                class="fab fa-twitter"></i></span>
                                                    </div>
                                                    <input type="text" name="twitter_username" class="form-control"
                                                        placeholder="Twitter Username">
                                                    <input type="hidden" name="twitter" value="https://twitter.com/">
                                                </div>
                                            </div>
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="input-group mb-3">
                                                    <div class="input-group-prepend">
                                                        <span class="input-group-text"><i
                                                                class="fab fa-instagram fw-bold"></i></span>
                                                    </div>
                                                    <input type="text" name="instagram_username" class="form-control"
                                                        placeholder="Instagram Username">
                                                    <input type="hidden" name="instagram"
                                                        value="https://www.instagram.com/">
                                                </div>
                                            </div>
                                            <div class="col-lg-3 col-sm-12">
                                                <div class="input-group mb-3">
                                                    <div class="input-group-prepend">
                                                        <span class="input-group-text"><i
                                                                class="fab fa-youtube"></i></span>
                                                    </div>
                                                    <input type="text" name="youtube_username" class="form-control"
                                                        placeholder="Youtube Username">
                                                    <input type="hidden" name="youtube"
                                                        value="https://www.youtube.com/">
                                                </div>
                                            </div>
                                        </div>


                                    </div>

                                    <div class="card-footer">
                                        <button type="submit" class="btn text-white fw-bold"
                                            style="background: #343a40; ">Add Vendor</button>
                                    </div>
                                </form>
                            </div>


                        </div>

                    </div>

                </div>
            </section>

        </div>
        <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
        <script>
        $(document).ready(function() {
            <?php if (isset($_GET['error'])) { ?>
            Swal.fire({
                title: 'Error',
                text: '<?php echo $_GET['error']; ?>',
                icon: 'error',
                confirmButtonText: 'OK',
                confirmButtonClass: 'btn btn-success btn-lg',
            });
            <?php } ?>
            <?php if (isset($_GET['success'])) { ?>
            Swal.fire({
                title: 'Success',
                text: '<?php echo $_GET['success']; ?>',
                icon: 'success',
                confirmButtonText: 'OK',
                confirmButtonClass: 'btn btn-success btn-lg',
            });
            <?php } ?>
        });
        </script>
        <?php include("footer.php")?>

    </div>


    <?php include("footerlink.php")?>
</body>

</html>