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

get_header();
the_post();
$data = get_fields();
$image = get_feature_image(get_the_ID());
?>

<div class="block-section bg-">
    <div class="container">
        <h1 class="block-section-title  text-center mb-4 h1"><?php the_title();?></h1>
        <p class="text-center">ให้เราได้ช่วยเหลือคุณ<br>ติดต่อเราได้ง่าย หลายช่องทางสะดวก</p>
        <div class="page-content">
            <div class="row align-items-center justify-content-center">
                <div class="col-lg-9">
                    <div class="card border-0 shadow">
                        <div class="card-body p-4">
                            <div class="h4 text-seconary">ติดต่อเรา</div>
                            <div class="row">
                                <div class="col-lg-6 mb-4 mb-lg-0">
                                    <?php echo apply_filters('the_content', get_the_content());  ?>
                                </div>
                                <div class="col-lg-6">
                                    <div class="row row-sm mb-4">
                                        <div class="col-2">
                                            <img src="<?php asset('images/icons/location.png') ?>" alt="location"
                                                class="w-100">
                                        </div>
                                        <div class="col-9">
                                            <?php config('setting.company_name'); ?><br>
                                            <?php config('setting.address'); ?>
                                        </div>
                                    </div>
                                    <div class="row align-items-center row-sm mb-4">
                                        <div class="col-2">
                                            <img src="<?php asset('images/icons/phone.png') ?>" alt="phone"
                                                class="w-100">
                                        </div>
                                        <div class="col-9">
                                            <?php config('setting.phone'); ?>
                                        </div>
                                    </div>
                                    <div class="row align-items-center row-sm">
                                        <div class="col-2">
                                            <img src="<?php asset('images/icons/mail.png') ?>" alt="mail" class="w-100">
                                        </div>
                                        <div class="col-9">
                                            <?php config('setting.email'); ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>



        </div>
    </div>
</div>
<div style="margin-bottom:-10px">
    <?php config('home.google_map'); ?>
</div>

<?php get_footer();