<?php
$this->load->view('top_application');
$adminRes = get_site_email();
//trace($adminRes);
?>
<script src='https://www.google.com/recaptcha/api.js'></script>
<section>
  <div class="con-page">
    <div class="con-page-ri">
      <div class="con-com">
        <h4 class="con-tit-top-o">Address & Contact Info</h4>
        <p><?php echo $adminRes->address; ?></p> <!--<span><img src="images/icon/phone.png" alt="" /> Phone: <?php echo $adminRes->phone; ?></span>--> <span><img src="images/icon/mail.png" alt="" /> Email: <?php echo $adminRes->admin_email; ?></span>
        <h4>Follow us on</h4>
        <p>Stay tune with us! You can follow us on our Social Networking platforms like Facebook, LinkedIn, Twitter, and YouTube to get the latest updates and to know more about us.</p>
        <div class="container">
          <div class="foot-social">
            <ul>
              <li><a href="<?php echo $adminRes->facebook; ?>" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a> </li>
              <?php
              if ($adminRes->twitter) {
                ?>
                <li><a href="<?php echo $adminRes->twitter; ?>" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a> </li>
                <?php
              }
              ?>
              <li><a href="<?php echo $adminRes->linkedin; ?>" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a> </li>
              <li><a href="<?php echo $adminRes->youtube; ?>" target="_blank"><i class="fa fa-youtube" aria-hidden="true"></i></a> </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="con-com">
        <div class="cpn-pag-form">
          <?php
          error_message();
          validation_message();
          ?>
          <form name="contactform" method="post">
            <h3>Support and Contact Enquiry</h3>
            <div>
              <div class="input-field col s12">
                <select id="type" name="type">
                  <option value="">--- Purpose* ---</option>
                  <option value="1" <?php echo ($this->input->post('type') == '1') ? 'selected' : ''; ?>>Enquiries</option>
                  <option value="2" <?php echo ($this->input->post('type') == '2') ? 'selected' : ''; ?>>Suggestioin</option>
                  <option value="3" <?php echo ($this->input->post('type') == '3') ? 'selected' : ''; ?>>Feedback</option>
                  <option value="4" <?php echo ($this->input->post('type') == '4') ? 'selected' : ''; ?>>Complaint</option>
                </select>
              </div>
            </div>
            <div>
              <div class="input-field col s6">
                <input id="first_name" type="text" name="first_name" value="<?php echo set_value('first_name'); ?>" class="validate" required />
                <label for="first_name">First Name*</label>
              </div>
              <div class="input-field col s6">
                <input id="last_name" type="text" name="last_name" value="<?php echo set_value('last_name'); ?>" class="validate" required />
                <label for="last_name">Last Name*</label>
              </div>
            </div>
            <div>
              <div class="input-field col s12">
                <input id="email" type="email" name="email" value="<?php echo set_value('email'); ?>" class="validate" required />
                <label for="name">Email*</label>
              </div>
            </div>
            <div>
              <div class="input-field col s12">
                <input id="phone" name="phone" type="number" class="validate" required value="<?php echo set_value('phone'); ?>" />
                <label for="phone">Mobile*</label>
              </div>
            </div>
            <div>
              <div class="input-field col s12">
                <textarea id="message" name="message" class="validate"><?php echo set_value('message'); ?></textarea>
                <label for="message">Message*</label>
              </div>
            </div>
            <div>
              <div class="input-field col s12">
              <div class="g-recaptcha" data-sitekey="<?php echo $this->config->item('google_key') ?>"></div>
              </div>
            </div>
            <div>
              <div class="input-field col s12">
                <input type="submit" value="SUBMIT" class="waves-effect waves-light btn-large full-btn list-red-btn"> </div>
            </div>
          </form>
        </div>
      </div>
      <!--<div class="con-com con-pag-map con-com-mar-bot-o">
        <h4 class="con-tit-top-o">Touch with us</h4>
        <p>28800 Orchard Lake Road, Suite 180 Farmington Hills, U.S.A. Landmark : Next To Airport</p>
        <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6290413.804893654!2d-93.99620524741552!3d39.66116578737809!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x880b2d386f6e2619%3A0x7f15825064115956!2sIllinois%2C+USA!5e0!3m2!1sen!2sin!4v1469954001005" allowfullscreen=""></iframe>
      </div>-->
    </div>
  </div>
</section>
<?php $this->load->view('bottom_application'); ?>