<?php
$this->load->view('top');
$adminRes = get_site_email();
?>
<section class="banner_category" style="background-image: url('<?php echo theme_url(); ?>images/contact.jpg');">
    <div class="container">
            <!-- <h2 class="banner_subtitle">check out over <span>200+</span></h2> -->
        <h1 class="banner_title">Contact Us</h1>
    </div>
</section>
<div class="page_breadcrumbs">
    <div class="container">
        <ul>
            <li><a href="<?= site_url(); ?>" title="Home">Home</a>
            </li>
            <li>Contact Us</li>
        </ul>
    </div>
</div>
<div class="contact_area">
    <div class="container">
        <div class="row">
            <div class="col-lg-8">
                <div class="contact-message">
                    <h2 class="contact-title">Contact Form</h2>
                    <?php if ($this->session->flashdata('success')) echo '
          <div class="alert alert-success success" style="padding: 8px 8px 8px 40px;">' . $this->session->flashdata('success') . '</div>
          <br/>'; ?>
                    <?php if ($this->session->flashdata('error')) echo '
          <div class="alert alert-warning error" style="padding: 8px 8px 8px 40px;">' . $this->session->flashdata('error') . '</div>
          <br/>'; ?>
                    <form action="" id="contact-form" name="contactform" method="post" class="contact-form">
                        <script src="https://www.google.com/recaptcha/api.js" async="" defer=""></script>
                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="form-group">
                                    <input class="form-control" name="first_name"  pattern="[a-z A-Z]+" value="<?php echo set_value('first_name'); ?>" type="text" required="">
                                    <label class="form-label">Name *</label>
                                    <?php echo form_error('first_name'); ?>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="form-group">
                                    <input class="form-control" name="phone" type="text"  required="" value="<?php echo set_value('phone'); ?>" maxlength="10" minlength="10" onKeyPress="return isNumberKey(event)">
                                    <label class="form-label">Phone *</label>
                                    <?php echo form_error('phone'); ?>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="form-group">
                                    <input class="form-control" name="email" type="email" required="" value="<?php echo set_value('email'); ?>">
                                    <label class="form-label">Email *</label>
                                    <?php echo form_error('email'); ?>
                                </div>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6">
                                <div class="form-group">
                                    <input name="location" class="form-control" type="text" required value="<?php echo set_value('location'); ?>" onKeyPress="return isAlphaNumeric(event)" size="500" ondrop="return false;" onpaste="return false;" onkeyup="isURL(this);">
                                    <label class="form-label">Location *</label>
                                    <?php echo form_error('location'); ?>
                                </div>
                            </div>

                            <!-- 	<div class="col-lg-12 col-md-12 col-sm-12">
                                            <div class="form-group">
                                                <select class="form-control" name="purpose" id="purpose">
                <option value="" selected>choose purpose</option>
                <option value="Product Enquiry">Product Enquiry</option>
                <option value="Feedback">Feedback</option>
                <option value="Complaint">Complaint</option>
                <option value="General Enquiry">General Enquiry</option>
             </select>
                                            
                            <?php echo form_error('purpose'); ?>
                                            </div>
                                    </div> -->

                            <div class="col-lg-12 col-md-12">
                                <!-- 	<div class="form-group">
                                                <textarea name="message" class="form-control textarea1" onKeyPress="return isAlphaNumeric(event)" size="500" ondrop="return false;" onpaste="return false;" onkeyup="isURL(this);" required=""><?php echo set_value('message'); ?></textarea>
                                                <label class="form-label">Message *</label>
                                <?php echo form_error('message'); ?>
                                        </div> -->


                                <div class="form-group">

                                    <textarea name="message" class="form-input textarea1" required=""  onKeyPress="return isAlphaNumeric(event)" size="500" ondrop="return false;" onpaste="return false;" onkeyup="isURL(this);"></textarea>

                                    <label class="form-label">Message *</label>

                                </div>

                                <div class="g-recaptcha" data-sitekey="<?php echo CAPTCHA_SITEKEY; ?>" style="transform:scale(0.80);-webkit-transform:scale(0.70);transform-origin:0 0;-webkit-transform-origin:0 0;outline:0"></div>
                                <?php echo form_error('g-recaptcha-response'); ?>

                                <div class="contact-btn">
                                    <button class="contact_btn" type="submit">Submit</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-lg-4">
                <div class="contact-info-three">
                    <div class="single-info">
                        <h4><?php echo $this->config->item('site_name'); ?></h4>
                        <div class="text"><?php echo $adminRes->address; ?></div>
                        <div class="wrapper-box"> 
                            <?php if ($adminRes->phone != '') {
                                echo '<a href="tel:' . $adminRes->phone . '">' . $adminRes->phone . '</a>';
                            } ?>  
                        </div>
                         <div class="wrapper-box"> 
                            <?php if ($adminRes->admin_email != '') {
                                echo '<a href="mailto:' . $adminRes->admin_email . '">' . $adminRes->admin_email . '</a>';
                            } ?>  
                        </div>
                    </div>

                    <div class="single-info">
                        <?php if ($adminRes->facebook != '' || $adminRes->twitter != '' || $adminRes->instagram != '' || $adminRes->youtube) { ?>
                            <h4>Follow us</h4>
                                <?php } ?>
                        <div class="wrapper-box">
                            <ul class="social-wrap">
                                <?php if ($adminRes->facebook != '') { ?><li class="fb"><a href="<?= ($adminRes->facebook != '') ? $adminRes->facebook : 'javascript:void(0);'; ?>" title="Facebook" <?= ($adminRes->facebook != '') ? 'target="_blank"' : ''; ?>><i class="fa fa-facebook"></i></a></li><?php } ?>
                                <?php if ($adminRes->twitter != '') { ?><li class="tw"><a href="<?= ($adminRes->twitter != '') ? $adminRes->twitter : 'javascript:void(0);'; ?>" title="Twitter" <?= ($adminRes->twitter != '') ? 'target="_blank"' : ''; ?>><i class="fa fa-twitter"></i></a></li><?php } ?>
                                <?php if ($adminRes->instagram != '') { ?><li class="instagram"><a href="<?= ($adminRes->instagram != '') ? $adminRes->instagram : 'javascript:void(0);'; ?>" title="Instagram" <?= ($adminRes->instagram != '') ? 'target="_blank"' : ''; ?>><i class="fa fa-instagram"></i></a></li><?php } ?>
<?php if ($adminRes->linkedin != '') { ?><li class="linkedin"><a href="<?= ($adminRes->linkedin != '') ? $adminRes->linkedin : 'javascript:void(0);'; ?>" title="Linked In" <?= ($adminRes->linkedin != '') ? 'target="_blank"' : ''; ?>><i class="fa fa-linkedin"></i></a></li><?php } ?>
<?php if ($adminRes->youtube != '') { ?><li class="youtube"><a href="<?= ($adminRes->youtube != '') ? $adminRes->youtube : 'javascript:void(0);'; ?>" title="Youtube" <?= ($adminRes->youtube != '') ? 'target="_blank"' : ''; ?>><i class="fa fa-youtube"></i></a></li><?php } ?>
                            </ul>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- <iframe class="iframe_map" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3501.0158162492457!2d77.14875131440786!3d28.659245089623695!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390d02f114c49e7f%3A0x11551dbc1a6316e9!2sWebpulse%20Solution%20Pvt%20Ltd%20-%20Rated%20%231%20Web%20Designing%2C%20SEO%20Company%20India!5e0!3m2!1sen!2sin!4v1574332011528!5m2!1sen!2sin" allowfullscreen=""></iframe> -->

<?php $this->load->view('bottom'); ?>
  