<?php
include('functions.php');
include('header.php');
$contact_us_info = contact();
?>
<div class="container">
    <div class="jumbotron">
        <div class="col-sm-8 mx-auto">
            <h1><?= $contact_us ?></h1>
        </div>
        <div class="col-sm-8 mx-auto">
            <div class="alert alert-light" role="alert">
                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $address ?>: </label>
                    </div>
                    <div class="col-6">
                        <div class="row text-danger"><?php echo $contact_us_info['address']; ?></div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $phone ?> : </label>
                    </div>
                    <div class="col-6">
                        <div class="row text-danger"><?php echo $contact_us_info['phone']; ?></div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $mobile ?> : </label>
                    </div>
                    <div class="col-6">
                        <div class="row text-danger"><?php echo $contact_us_info['mobile']; ?></div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $whats ?> : </label>
                    </div>
                    <div class="col-6">
                        <a class="row text-danger" href="https://wa.me/97<?php echo $contact_us_info['whatsapp']; ?>"><?php echo $contact_us_info['whatsapp']; ?></a>
                    </div>
                </div>

                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $email ?> : </label>
                    </div>
                    <div class="col-6">
                        <div class="row text-danger"><?php echo $contact_us_info['email']; ?></div>
                    </div>
                </div>


                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $instagram ?> : </label>
                    </div>
                    <div class="col-6">
                        <a class="row text-danger" href="<?php echo $contact_us_info['instagram']; ?>">go Contact Instagram</a>
                    </div>
                </div>


                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $twitter ?> : </label>
                    </div>
                    <div class="col-6">
                        <a class="row text-danger" href="<?php echo $contact_us_info['twitter']; ?>">go Contact Twitter</a>
                    </div>
                </div>

                <div class="row">
                    <div class="col-6">
                        <label class="label-info"><?= $facebook ?> : </label>
                    </div>
                    <div class="col-6">
                        <a class="row text-danger" href="<?php echo $contact_us_info['facebook']; ?>">go Contact Facebook</a>
                    </div>
                </div>
                <div class="row">
                    <?php
                    $x = $contact_us_info['latu'];
                    $y = $contact_us_info['longu'];
                    ?>
                    <div class="col-6">
                        <label class="text-danger"><?= $location ?> :</label>
                    </div>
                    <div class="col-6">
                        <?php if ($x == 0 && $y == 0) { ?>
                            <p>#</p>
                        <?php } else { ?>
                            <a class="row text-danger" href="http://maps.google.co.uk/maps?q=<?php echo $x ?>,<?php echo $y ?>"><i class="fa fa-location-arrow"></i> </a>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php include('footer.php'); ?>