<?php
   $footer   =   $this->mainMenu()->getCompanyData();
   //echo '<pre>';print_r($footer);die();
?>
<script src='https://www.google.com/recaptcha/api.js'></script>
<section id="banner-img" style="background:#c0c0c0; padding:0;">
    <div class="container">
        <div class="center wow animated" id="contact" style="visibility: visible;">



            <!--/.row-->
        </div><!--/.container-->

    </div>
</section>

<section id="contact-info">
    <div class="center">
        <h2><strong>How to Reach Us?</strong></h2>
       <!-- <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>-->
    </div>
    <div class="gmap-area">
        <div class="container">
            <div class="row">
                <div class="col-sm-5 text-center">
                    <div class="gmap">
                        <!--<iframe src="https://maps.google.com/maps/ms?msa=0&amp;msid=211001950410036316718.0004df15470c207210920&amp;ie=UTF8&amp;ll=28.651993,77.194748&amp;spn=0,0&amp;t=m&amp;output=embed" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="350" frameborder="0"></iframe>-->
                        <iframe src="https://www.google.com/maps/d/u/0/embed?mid=1OwInus0wvn6HqcmrVYhcL0QjMq6OEh4k" width="640" height="480"></iframe>
                    </div>
                </div>

                <div class="col-sm-7 map-content">
                    <ul class="row">
                        <li class="col-sm-6">
                            <address>
                                <h5>Head Office</h5>
                                <p><?php echo isset($footer['com_name'])?$footer['com_name']:''; ?></p>
                                <p><?php echo isset($footer['domain_address'])?$footer['domain_address']:''; ?></p>
                                <p>Phone: +91-11-<?php echo isset($footer['phone'])?$footer['phone']:''; ?><br>
                                    Email Address: <?php echo isset($footer['global_email'])?$footer['global_email']:''; ?></p>

                            </address>


                        </li>


                        <li class="col-sm-6">



                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>

<section id="contact-page">
    <div class="container">
        <div class="center col-lg-12">
            <h2><strong>Drop Your Message</strong></h2>
            <p class="lead">Please fill the form for Contact Us.</p>
            <?php if($status=="true"){ ?><p class="lead" style="color: green;">Mail Sent Successfully.</p><?php } else if($status=="false") { ?>
            <p class="lead" style="color: red;">Some error due to Send Mail</p><?php }?>
        </div>
        <div class="row contact-wrap col-lg-12">
            <div class="status alert alert-success" style="display: none" id="mailsendmsg"></div>
            <?php
            $form = $this->form;
            $form->prepare();
            $form->setAttribute('action', $this->url('cms-pages', ['page' => 'contact-us']));
            $form->setAttribute('method', 'post');
            $form->setAttribute('class', 'contact-form');
            echo $this->form()->openTag($form);
            ?>
            <div class="col-sm-5 col-sm-offset-1">
                <div class="form-group">
                    <?php echo $this->translate($this->formLabel($form->get('contact_name'))); ?>
                    <?php echo $this->formElement($form->get('contact_name')); ?>
                    <?php echo $this->formElementErrors($form->get('contact_name'), ['class' => 'error']); ?>
                </div>

                <div class="form-group">
                    <?php echo $this->translate($this->formLabel($form->get('contact_email'))); ?>
                    <?php echo $this->formElement($form->get('contact_email')); ?>
                    <?php echo $this->formElementErrors($form->get('contact_email'), ['class' => 'error']); ?>
                </div>

                <div class="form-group">
                    <?php echo $this->translate($this->formLabel($form->get('contact_mobile'))); ?>
                    <?php echo $this->formElement($form->get('contact_mobile')); ?>
                    <?php echo $this->formElementErrors($form->get('contact_mobile'), ['class' => 'error']); ?>
                </div>

                <div class="form-group">
                    <?php echo $this->translate($this->formLabel($form->get('contact_comp_name'))); ?>
                    <?php echo $this->formElement($form->get('contact_comp_name')); ?>
                    <?php echo $this->formElementErrors($form->get('contact_comp_name'), ['class' => 'error']); ?>
                </div>
            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <?php echo $this->translate($this->formLabel($form->get('contact_subject'))); ?>
                    <?php echo $this->formElement($form->get('contact_subject')); ?>
                    <?php echo $this->formElementErrors($form->get('contact_subject'), ['class' => 'error']); ?>
                </div>
                <div class="form-group">
                    <?php echo $this->translate($this->formLabel($form->get('contact_msg'))); ?>
                    <?php echo $this->formElement($form->get('contact_msg')); ?>
                    <?php echo $this->formElementErrors($form->get('contact_msg'), ['class' => 'error']); ?>
                </div>

                 <div class="form-group">
                    <div class="g-recaptcha" data-sitekey="<?php echo $captchaKey; ?>"></div>
                    <div class="error"><?php echo $this->error; ?></div>
                 </div>



                <div class="form-group">
                    <?php echo $this->FormElement($form->get('contact_submit')); ?>
                </div>
            </div>
            <?php echo $this->form()->closeTag(); ?>
        </div><!--/.row-->
    </div><!--/.container-->
</section>