<?php
/** Template Name: Contact us** */

get_header(); ?>
    <section class="sub_banner container-fluid m_b_100 m_b_xs_100">
    <img src="<?= get_template_directory_uri(); ?>/images/Dark.png" class="contact_bg"/>
    <div class="row">
        <div class="container">
            <div class="row m_t_100">
                <div class="tablee">
                    <div class="col-md-5 tablee_cell">
                        <div class="row contect_details text-left">
                            <?php $Address = get_field('address', 'options');
                            $address_icon = get_field('address_icon', 'options');
                            if (!empty($Address) && !empty($address_icon)): ?>
                                <div class="col-md-9 col-md-offset-3 m_b_20">
                                    <div class="tablee">
                                        <div class="tablee_cell" style="width:100px;"><?= $address_icon; ?></div>
                                        <div class="tablee_cell text-left"><a><?= $Address; ?></a></div>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php $EmailAddress = get_field('email_address', 'options');
                            $EmailIcon = get_field('email_address_icon', 'options');
                            if (!empty($EmailAddress) && !empty($EmailIcon)): ?>
                                <div class="col-md-9 col-md-offset-3 m_b_20">
                                    <div class="tablee">
                                        <div class="tablee_cell" style="width:100px;"><?= $EmailIcon; ?></div>
                                        <div class="tablee_cell">
                                            <a href="mailto:<?= $EmailAddress; ?>"><?= $EmailAddress; ?></a></div>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php $PhoneNumber = get_field('phone_number', 'options');
                            $Phoneicon = get_field('phone_icon', 'options');
                            if (!empty($PhoneNumber) && !empty($Phoneicon)): ?>
                                <div class="col-md-9 col-md-offset-3 m_b_20">
                                    <div class="tablee">
                                        <div class="tablee_cell" style="width:100px;"><?= $Phoneicon; ?></div>
                                        <div class="tablee_cell">
                                            <a href="tel:<?= $PhoneNumber; ?>"><?= $PhoneNumber; ?></a></div>
                                    </div>
                                </div>
                            <?php endif; ?>
                        </div>
                        <a href="<?= site_url(); ?>" class="back_to_home"><i class="fa fa-angle-double-left"></i> Back
                            To Home</a></div>
                    <div class="col-md-7 tablee_cell">
                        <div class="row">
                            <div class="col-md-10 col-md-offset-2">
                                <h2 class="big_text"><?php the_field('cap_title'); ?></h2>
                                <div class="banner_form">                                        <?php $contactFormshortcode = get_field('form_shorcode'); ?>                                        <?= do_shortcode($contactFormshortcode); ?>                                    </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </section>
<?php get_footer();